mirror of
https://github.com/prabirshrestha/vim-lsp.git
synced 2025-12-14 20:35:59 +01:00
Merge pull request #387 from dhakimian/fix-ref-jump
Fix cursor positioning when jumping to next/prev reference
This commit is contained in:
@@ -221,5 +221,6 @@ function! lsp#ui#vim#references#jump(offset) abort
|
||||
|
||||
" Jump
|
||||
let l:target = w:lsp_reference_positions[l:index][0:1]
|
||||
silent exec 'normal! ' . l:target[0] . 'G' . l:target[1] . '|'
|
||||
normal! m`
|
||||
call cursor(l:target[0], l:target[1])
|
||||
endfunction
|
||||
|
||||
Reference in New Issue
Block a user