diff options
author | Bradford Larsen <brad.larsen@gmail.com> | 2018-08-07 16:10:36 -0400 |
---|---|---|
committer | Bradford Larsen <brad.larsen@gmail.com> | 2018-08-07 16:10:36 -0400 |
commit | 023ade872e69f69a42e6e37faf21285afdf8951a (patch) | |
tree | fbce15e791cae7cbdc0032adfe01f756e341286a | |
parent | 5f5540c574deead932a7785468899d1d0a8540ce (diff) | |
download | ale-023ade872e69f69a42e6e37faf21285afdf8951a.zip |
Adjust the jumplist with line numbers too when opening a new file
This further addresses Issue #1758.
-rw-r--r-- | autoload/ale/util.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/autoload/ale/util.vim b/autoload/ale/util.vim index be37d1b5..e9b5688d 100644 --- a/autoload/ale/util.vim +++ b/autoload/ale/util.vim @@ -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 |