Skip to content

Commit d157c4d

Browse files
committed
Avoid side-effect of calling s:findMotion() in EasyMotion#OverwinF()
s:findMotion() sets s:current.original_position and EasyMotion#OverwinF() has to reset this var. fix easymotion#265
1 parent 6bad3f4 commit d157c4d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

autoload/EasyMotion.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ function! EasyMotion#S(num_strokes, visualmode, direction) " {{{
140140
endfunction " }}}
141141
function! EasyMotion#OverwinF(num_strokes) " {{{
142142
let re = s:findMotion(a:num_strokes, s:DIRECTION.bidirection)
143+
call EasyMotion#reset()
143144
return EasyMotion#overwin#move(re)
144145
endfunction "}}}
145146
function! EasyMotion#T(num_strokes, visualmode, direction) " {{{

0 commit comments

Comments
 (0)