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.
1 parent 337cd8d commit da99206Copy full SHA for da99206
autoload/lsp.vim
@@ -216,7 +216,9 @@ endfunction
216
function! s:on_text_document_did_close() abort
217
let l:buf = bufnr('%')
218
call lsp#log('s:on_text_document_did_close()', l:buf)
219
- call remove(s:file_content, l:buf)
+ if has_key(s:file_content, l:buf)
220
+ call remove(s:file_content, l:buf)
221
+ endif
222
endfunction
223
224
function! s:ensure_flush_all(buf, server_names) abort
0 commit comments