Skip to content

Commit 56835a9

Browse files
committed
Add comment
1 parent 6262bae commit 56835a9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

autoload/lsp/ui/vim/completion.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ endfunction
2323
" 6. then the line is `call getbufline(|` in `s:on_complete_done_after`
2424
"
2525
function! s:on_complete_done() abort
26+
" Somtimes, vim occurs `CompleteDone` unexpectedly.
27+
" We try to detect it by checking empty completed_item.
2628
if empty(v:completed_item) || get(v:completed_item, 'word', '') ==# '' && get(v:completed_item, 'abbr', '') ==# ''
2729
doautocmd User lsp_complete_done
2830
return

0 commit comments

Comments
 (0)