mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-08 05:24:46 +08:00
set marks to add to jump list
This commit is contained in:
@@ -66,6 +66,7 @@ function! ale#loclist_jumping#Jump(direction, wrap) abort
|
|||||||
let l:nearest = ale#loclist_jumping#FindNearest(a:direction, a:wrap)
|
let l:nearest = ale#loclist_jumping#FindNearest(a:direction, a:wrap)
|
||||||
|
|
||||||
if !empty(l:nearest)
|
if !empty(l:nearest)
|
||||||
|
normal! m`
|
||||||
call cursor(l:nearest)
|
call cursor(l:nearest)
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
@@ -82,6 +83,7 @@ function! ale#loclist_jumping#JumpToIndex(index) abort
|
|||||||
let l:item = l:loclist[a:index]
|
let l:item = l:loclist[a:index]
|
||||||
|
|
||||||
if !empty(l:item)
|
if !empty(l:item)
|
||||||
|
normal! m`
|
||||||
call cursor([l:item.lnum, l:item.col])
|
call cursor([l:item.lnum, l:item.col])
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
Reference in New Issue
Block a user