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:
parent
6bad3f4174
commit
d157c4d1cd
@ -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) " {{{
|
||||
|
Loading…
Reference in New Issue
Block a user