From 2ddc73453bf89180fcd7e966c2732526e305a7c6 Mon Sep 17 00:00:00 2001 From: Kevin Johnson Date: Fri, 17 Apr 2015 22:57:07 -0700 Subject: [PATCH] add Search special case in mapping helper function --- plugin/EasyMotion.vim | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugin/EasyMotion.vim b/plugin/EasyMotion.vim index e8293b3..82c8e8b 100644 --- a/plugin/EasyMotion.vim +++ b/plugin/EasyMotion.vim @@ -64,10 +64,13 @@ function! s:motion_map_helper(motions) "{{{ let l:mapargs = [] let l:xmapargs = [] if dict.fnc ==# 'S' || dict.fnc ==# 'SL' || dict.fnc ==# 'T' || dict.fnc ==# 'TL' - let l:mapargs += [dict.cnt, 0, dict.direction] + let l:mapargs += [dict.cnt, 0, dict.direction] let l:xmapargs += [dict.cnt, 1, dict.direction] + elseif dict.fnc ==# 'Search' + let l:mapargs += [0, dict.direction, dict.respect_direction] + let l:xmapargs += [1, dict.direction, dict.respect_direction] else - let l:mapargs += [0, dict.direction] + let l:mapargs += [0, dict.direction] let l:xmapargs += [1, dict.direction] endif