Skip to content

Commit

Permalink
Avoid side-effect of calling s:findMotion() in EasyMotion#OverwinF()
Browse files Browse the repository at this point in the history
s:findMotion() sets s:current.original_position and
EasyMotion#OverwinF() has to reset this var.

fix #265
  • Loading branch information
haya14busa committed Jan 21, 2016
1 parent 6bad3f4 commit d157c4d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions autoload/EasyMotion.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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) " {{{
Expand Down

0 comments on commit d157c4d

Please sign in to comment.