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 #265
This commit is contained in:
haya14busa 2016-01-21 15:03:59 +09:00
parent 6bad3f4174
commit d157c4d1cd

View File

@ -140,6 +140,7 @@ function! EasyMotion#S(num_strokes, visualmode, direction) " {{{
endfunction " }}}
function! EasyMotion#OverwinF(num_strokes) " {{{
let re = s:findMotion(a:num_strokes, s:DIRECTION.bidirection)
call EasyMotion#reset()
return EasyMotion#overwin#move(re)
endfunction "}}}
function! EasyMotion#T(num_strokes, visualmode, direction) " {{{