Skip to content

Commit f453d6c

Browse files
authored
workaround for float position (#1392)
1 parent 9baef1f commit f453d6c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

autoload/lsp/internal/diagnostics/float.vim

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,7 @@ endfunction
9696
function! s:compute_position(size) abort
9797
let l:pos = screenpos(0, line('.'), col('.'))
9898
if l:pos.row == 0 && l:pos.col == 0
99-
" When the specified position is not visible
100-
return []
99+
let l:pos = {'curscol': screencol(), 'row': screenrow()}
101100
endif
102101
let l:pos = [l:pos.row + 1, l:pos.curscol + 1]
103102
if l:pos[0] + a:size.height > &lines

0 commit comments

Comments
 (0)