mirror of
https://github.com/prabirshrestha/vim-lsp.git
synced 2025-12-14 20:35:59 +01:00
workaround for float position
This commit is contained in:
@@ -96,8 +96,7 @@ endfunction
|
||||
function! s:compute_position(size) abort
|
||||
let l:pos = screenpos(0, line('.'), col('.'))
|
||||
if l:pos.row == 0 && l:pos.col == 0
|
||||
" When the specified position is not visible
|
||||
return []
|
||||
let l:pos = {'curscol': screencol(), 'row': screenrow()}
|
||||
endif
|
||||
let l:pos = [l:pos.row + 1, l:pos.curscol + 1]
|
||||
if l:pos[0] + a:size.height > &lines
|
||||
|
||||
Reference in New Issue
Block a user