Skip to content

Commit 9fa593a

Browse files
authored
Fix preview feature for vim without patch-8.1.1517 (#728)
Even if `g:lsp_preview_float` is true, vim-lsp should call `:pclose` if `s:use_preview` is true.
1 parent 85a03f2 commit 9fa593a

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_preview
294294
pclose
295295
endif
296296

0 commit comments

Comments
 (0)