Skip to content

Commit c828d8e

Browse files
committed
Fix preview feature for vim without patch-8.1.1517
Even if `g:lsp_preview_float` is true, vim-lsp should call `:pclose` if `s:use_vim_popup` is false.
1 parent 651bccf commit c828d8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/lsp/ui/vim/output.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ function! lsp#ui#vim#output#preview(server, data, options) abort
290290
return call(g:lsp_preview_doubletap[0], [])
291291
endif
292292
" Close any previously opened preview window
293-
if !g:lsp_preview_float
293+
if !s:use_vim_popup
294294
pclose
295295
endif
296296

0 commit comments

Comments
 (0)