summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2018-07-25 19:41:00 +0100
committerGitHub <noreply@github.com>2018-07-25 19:41:00 +0100
commitc4cb1c7050ef07293162439ff6550f227af3f597 (patch)
tree3ee1a845f373e2229bdfc4681681d5e35773b2ef /autoload
parent06132954b12ba87c7bba8fb7d5a40e4ff8b774e8 (diff)
parentcf174d3b9b5b1edab8ae4b2542b497e53fb8ab10 (diff)
downloadale-c4cb1c7050ef07293162439ff6550f227af3f597.zip
Merge pull request #1539 from JonnyRa/jump-list-fix
set marks to add to jump list
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/loclist_jumping.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/autoload/ale/loclist_jumping.vim b/autoload/ale/loclist_jumping.vim
index 7ed9e6ba..fd5ff922 100644
--- a/autoload/ale/loclist_jumping.vim
+++ b/autoload/ale/loclist_jumping.vim
@@ -66,6 +66,7 @@ function! ale#loclist_jumping#Jump(direction, wrap) abort
let l:nearest = ale#loclist_jumping#FindNearest(a:direction, a:wrap)
if !empty(l:nearest)
+ normal! m`
call cursor(l:nearest)
endif
endfunction
@@ -82,6 +83,7 @@ function! ale#loclist_jumping#JumpToIndex(index) abort
let l:item = l:loclist[a:index]
if !empty(l:item)
+ normal! m`
call cursor([l:item.lnum, l:item.col])
endif
endfunction