Skip to content

Commit be46977

Browse files
committed
Fix dangling documentation popup in vim8 (#1165)
1 parent 87ac1b0 commit be46977

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

autoload/LanguageClient.vim

+6-1
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,12 @@ function! s:OpenHoverPreview(bufname, lines, filetype, ...) abort
546546
elseif display_approach ==# 'popup_win'
547547
let l:padding = [1, 1, 1, 1]
548548
if get(a:000, 0, v:null) isnot v:null && get(a:000, 1, v:null) isnot v:null
549-
let pop_win_id = popup_create(a:lines, { 'line': get(a:000, 1) + 1, 'col': get(a:000, 0) + 1, 'padding': l:padding })
549+
let pop_win_id = popup_create(a:lines, {
550+
\ 'line': get(a:000, 1) + 1,
551+
\ 'col': get(a:000, 0) + 1,
552+
\ 'padding': l:padding,
553+
\ 'moved': 'any'
554+
\ })
550555
else
551556
let pop_win_id = popup_atcursor(a:lines, { 'padding': l:padding })
552557
endif

0 commit comments

Comments
 (0)