Adjust the jumplist with line numbers too when opening a new file

This further addresses Issue #1758.
This commit is contained in:
Bradford Larsen 2018-08-07 16:10:36 -04:00
parent 5f5540c574
commit 023ade872e
1 changed files with 2 additions and 2 deletions

View File

@ -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