Skip to content

Commit e0f8324

Browse files
authored
Merge pull request #387 from dhakimian/fix-ref-jump
Fix cursor positioning when jumping to next/prev reference
2 parents e781beb + 19090fe commit e0f8324

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

autoload/lsp/ui/vim/references.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,5 +221,6 @@ function! lsp#ui#vim#references#jump(offset) abort
221221

222222
" Jump
223223
let l:target = w:lsp_reference_positions[l:index][0:1]
224-
silent exec 'normal! ' . l:target[0] . 'G' . l:target[1] . '|'
224+
normal! m`
225+
call cursor(l:target[0], l:target[1])
225226
endfunction

0 commit comments

Comments
 (0)