From d157c4d1cdaef46c2617e73f464d1b6ff12c1bcf Mon Sep 17 00:00:00 2001 From: haya14busa Date: Thu, 21 Jan 2016 15:03:59 +0900 Subject: [PATCH] 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 --- autoload/EasyMotion.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/autoload/EasyMotion.vim b/autoload/EasyMotion.vim index b1e5bf1..4407aaf 100644 --- a/autoload/EasyMotion.vim +++ b/autoload/EasyMotion.vim @@ -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) " {{{