Skip to content

Commit 0d1af5a

Browse files
author
Daniel Hakimian
committed
Use cursor() instead of exec
1 parent f75914d commit 0d1af5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/lsp/ui/vim/references.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,5 +221,5 @@ 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] . 'G0' . (l:target[1] == 1 ? '' : l:target[1]-1 . 'l')
224+
call cursor(l:target[0], l:target[1])
225225
endfunction

0 commit comments

Comments
 (0)