diff options
author | Jonny Ramsden <JonnyRa@users.noreply.github.com> | 2018-04-27 17:18:18 +0100 |
---|---|---|
committer | Jonny Ramsden <JonnyRa@users.noreply.github.com> | 2018-04-27 17:18:18 +0100 |
commit | cf174d3b9b5b1edab8ae4b2542b497e53fb8ab10 (patch) | |
tree | dc60d65928fc0d5d8538cf8db2f5c14b238e7808 | |
parent | d8d09c2048a72a6205bcf1c5069f7016a3a6261e (diff) | |
download | ale-cf174d3b9b5b1edab8ae4b2542b497e53fb8ab10.zip |
set marks to add to jump list
-rw-r--r-- | autoload/ale/loclist_jumping.vim | 2 |
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 |