We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 51999e8 + 95f6ce7 commit 9bb546eCopy full SHA for 9bb546e
autoload/intero/loc.vim
@@ -70,10 +70,14 @@ function! s:handle_loc(resp) abort
70
let l:start_row = l:start_split[0]
71
let l:start_col = l:start_split[1]
72
let l:cwd = getcwd()
73
+ " jump to the appropriate location, taking care to add exactly one
74
+ " entry to the jumplist
75
if l:pack_or_path != l:cwd . '/' . expand('%')
- exec 'edit +' . l:start_row . ' ' . l:pack_or_path
76
+ exec 'edit ' . l:pack_or_path
77
+ call cursor(l:start_row, l:start_col)
78
+ else
79
+ exec 'normal ' . l:start_row . 'G' . l:start_col . '|'
80
endif
- call cursor(l:start_row, l:start_col)
81
exec 'cd ' . l:cwd
82
83
endfunction
0 commit comments