Next/Previous motions with counts are now jump motions
This commit is contained in:
parent
7a03e86471
commit
28236c3d47
@ -323,10 +323,22 @@ function! EasyMotion#NextPrevious(visualmode, direction) " {{{
|
||||
" FIXME: blink highlight
|
||||
silent exec 'normal! gv'
|
||||
endif
|
||||
|
||||
" Mark jump-list
|
||||
if cnt > 1
|
||||
" Consider Next/Previous motions as jump motion :h jump-motion
|
||||
" Note: It should add jumplist even if the count isn't given
|
||||
" considering vim's default behavior of `n` & `N`, but just
|
||||
" I don't want to do it without the count. Should I add a
|
||||
" option?
|
||||
normal! m`
|
||||
endif
|
||||
|
||||
" Jump
|
||||
for i in range(cnt)
|
||||
" Do not treat this motion as 'jump' motion
|
||||
keepjumps call searchpos(re, search_direction)
|
||||
endfor
|
||||
|
||||
call EasyMotion#reset()
|
||||
" -- Activate EasyMotion ----------------- {{{
|
||||
let s:EasyMotion_is_active = 1
|
||||
|
Loading…
Reference in New Issue
Block a user