add Search special case in mapping helper function

This commit is contained in:
Kevin Johnson 2015-04-17 22:57:07 -07:00
parent 4465876cdc
commit 2ddc73453b

View File

@ -66,6 +66,9 @@ function! s:motion_map_helper(motions) "{{{
if dict.fnc ==# 'S' || dict.fnc ==# 'SL' || dict.fnc ==# 'T' || dict.fnc ==# 'TL'
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:xmapargs += [1, dict.direction]