Update shade regexps

This commit is contained in:
Kim Silkebækken 2011-03-28 09:04:57 +02:00
parent 0bcb81a5f3
commit 8f19f49f46

View File

@ -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)