From 8f19f49f46c4fcaea0b69b9731065fc7ee4ad847 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kim=20Silkeb=C3=A6kken?= Date: Mon, 28 Mar 2011 09:04:57 +0200 Subject: [PATCH] Update shade regexps --- plugin/EasyMotion.vim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugin/EasyMotion.vim b/plugin/EasyMotion.vim index 1db4627..f15b397 100644 --- a/plugin/EasyMotion.vim +++ b/plugin/EasyMotion.vim @@ -328,9 +328,11 @@ let shade_hl_pos = '\%' . orig_pos[0] . 'l\%'. orig_pos[1] .'c' if a:direction == 1 - let shade_hl_re = '\%^\_.*' . shade_hl_pos + " Backward + let shade_hl_re = '\%'. line('w0') .'l\_.*' . shade_hl_pos else - let shade_hl_re = shade_hl_pos . '\_.*\%$' + " Forward + let shade_hl_re = shade_hl_pos . '\_.*\%'. line('w$') .'l' endif let shade_hl_id = matchadd(g:EasyMotion_shade_hl, shade_hl_re, 0)