diff --git a/autoload/EasyMotion.vim b/autoload/EasyMotion.vim index 083f23d..2fee738 100644 --- a/autoload/EasyMotion.vim +++ b/autoload/EasyMotion.vim @@ -305,6 +305,7 @@ function! EasyMotion#DotRepeat(visualmode) " {{{ endfunction " }}} function! EasyMotion#NextPrevious(visualmode, direction) " {{{ " Move next/previous destination using previous motion regexp + let cnt = v:count1 " avoid overwriting if !has_key(s:previous, 'regexp') call s:Message("Previous targets doesn't exist") let s:EasyMotion_is_cancelled = 1 @@ -322,7 +323,7 @@ function! EasyMotion#NextPrevious(visualmode, direction) " {{{ " FIXME: blink highlight silent exec 'normal! gv' endif - for i in range(v:count1) + for i in range(cnt) " Do not treat this motion as 'jump' motion keepjumps call searchpos(re, search_direction) endfor diff --git a/plugin/EasyMotion.vim b/plugin/EasyMotion.vim index a807f4a..506fb86 100644 --- a/plugin/EasyMotion.vim +++ b/plugin/EasyMotion.vim @@ -237,12 +237,12 @@ xnoremap (easymotion-dotrepeat) noremap (easymotion-next) \ :call EasyMotion#NextPrevious(0,0) xnoremap (easymotion-next) - \ :call EasyMotion#NextPrevious(1,0) + \ :call EasyMotion#NextPrevious(1,0) noremap (easymotion-prev) \ :call EasyMotion#NextPrevious(0,1) xnoremap (easymotion-prev) - \ :call EasyMotion#NextPrevious(1,1) + \ :call EasyMotion#NextPrevious(1,1) "}}} " -- Line Motion {{{