Skip to content

Commit 6262bae

Browse files
committed
Avoid clearing managed user_data unexpectedly
1 parent 64d514d commit 6262bae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/lsp/ui/vim/completion.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ endfunction
2323
" 6. then the line is `call getbufline(|` in `s:on_complete_done_after`
2424
"
2525
function! s:on_complete_done() abort
26-
if empty(v:completed_item)
26+
if empty(v:completed_item) || get(v:completed_item, 'word', '') ==# '' && get(v:completed_item, 'abbr', '') ==# ''
2727
doautocmd User lsp_complete_done
2828
return
2929
endif

0 commit comments

Comments
 (0)