Adjust the jumplist with line numbers too when opening a new file
This further addresses Issue #1758.
This commit is contained in:
parent
5f5540c574
commit
023ade872e
@ -88,10 +88,10 @@ endfunction
|
||||
|
||||
function! ale#util#Open(filename, line, column, options) abort
|
||||
if get(a:options, 'open_in_tab', 0)
|
||||
call ale#util#Execute('tabedit ' . fnameescape(a:filename))
|
||||
call ale#util#Execute('tabedit +' . a:line . ' ' . fnameescape(a:filename))
|
||||
elseif bufnr(a:filename) isnot bufnr('')
|
||||
" Open another file only if we need to.
|
||||
call ale#util#Execute('edit ' . fnameescape(a:filename))
|
||||
call ale#util#Execute('edit +' . a:line . ' ' . fnameescape(a:filename))
|
||||
else
|
||||
normal! m`
|
||||
endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user