Fix #1758 - Set marks before going to definitions
This commit is contained in:
parent
c4cb1c7050
commit
4ed35f7247
@ -89,11 +89,11 @@ endfunction
|
|||||||
function! ale#util#Open(filename, line, column, options) abort
|
function! ale#util#Open(filename, line, column, options) abort
|
||||||
if get(a:options, 'open_in_tab', 0)
|
if get(a:options, 'open_in_tab', 0)
|
||||||
call ale#util#Execute('tabedit ' . fnameescape(a:filename))
|
call ale#util#Execute('tabedit ' . fnameescape(a:filename))
|
||||||
else
|
elseif bufnr(a:filename) isnot bufnr('')
|
||||||
" Open another file only if we need to.
|
" Open another file only if we need to.
|
||||||
if bufnr(a:filename) isnot bufnr('')
|
|
||||||
call ale#util#Execute('edit ' . fnameescape(a:filename))
|
call ale#util#Execute('edit ' . fnameescape(a:filename))
|
||||||
endif
|
else
|
||||||
|
normal! m`
|
||||||
endif
|
endif
|
||||||
|
|
||||||
call cursor(a:line, a:column)
|
call cursor(a:line, a:column)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user