change within_line shade_hl_re
This commit is contained in:
parent
7127b88604
commit
270037545c
@ -1258,13 +1258,25 @@ function! s:EasyMotion(regexp, direction, visualmode, is_inclusive) " {{{
|
||||
if g:EasyMotion_do_shade && targets_len != 1 && s:flag.dot_repeat != 1
|
||||
if a:direction == 1
|
||||
" Backward
|
||||
let shade_hl_re = '\%'. win_first_line .'l\_.*\%#'
|
||||
if s:flag.within_line
|
||||
let shade_hl_re = '^.*\%#'
|
||||
else
|
||||
let shade_hl_re = '\%'. win_first_line .'l\_.*\%#'
|
||||
endif
|
||||
elseif a:direction == 0
|
||||
" Forward
|
||||
let shade_hl_re = '\%#\_.*\%'. win_last_line .'l'
|
||||
if s:flag.within_line
|
||||
let shade_hl_re = '\%#.*$'
|
||||
else
|
||||
let shade_hl_re = '\%#\_.*\%'. win_last_line .'l'
|
||||
endif
|
||||
else
|
||||
" Both directions"
|
||||
let shade_hl_re = '\_.*'
|
||||
if s:flag.within_line
|
||||
let shade_hl_re = '^.*\%#.*$'
|
||||
else
|
||||
let shade_hl_re = '\_.*'
|
||||
endif
|
||||
endif
|
||||
|
||||
call EasyMotion#highlight#add_highlight(
|
||||
|
Loading…
Reference in New Issue
Block a user