We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9a3ddfa + 26a74ba commit 10c7aa0Copy full SHA for 10c7aa0
autoload/intero/process.vim
@@ -128,12 +128,17 @@ endfunction
128
function! intero#process#kill() abort
129
" Kills the intero buffer, if it exists.
130
if exists('g:intero_buffer_id')
131
- exe 'bd! ' . g:intero_buffer_id
+ " The buffer may have been manually closed if Intero crashed
132
+ if bufexists(g:intero_buffer_id)
133
+ exe 'bd! ' . g:intero_buffer_id
134
+ endif
135
+
136
unlet g:intero_buffer_id
137
" Deleting a terminal buffer implicitly stops the job
138
unlet g:intero_job_id
- let g:intero_started = 0
139
endif
140
141
+ let g:intero_started = 0
142
endfunction
143
144
function! intero#process#hide() abort
0 commit comments