summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBradford Larsen <brad.larsen@gmail.com>2018-08-07 16:10:36 -0400
committerBradford Larsen <brad.larsen@gmail.com>2018-08-07 16:10:36 -0400
commit023ade872e69f69a42e6e37faf21285afdf8951a (patch)
treefbce15e791cae7cbdc0032adfe01f756e341286a
parent5f5540c574deead932a7785468899d1d0a8540ce (diff)
downloadale-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.vim4
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