Merge pull request #144 from natnu/myprototype
Within line motion 時の shade の範囲の変更
This commit is contained in:
commit
c87f91d712
@ -1258,14 +1258,26 @@ 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
|
||||
if s:flag.within_line
|
||||
let shade_hl_re = '^.*\%#'
|
||||
else
|
||||
let shade_hl_re = '\%'. win_first_line .'l\_.*\%#'
|
||||
endif
|
||||
elseif a:direction == 0
|
||||
" Forward
|
||||
if s:flag.within_line
|
||||
let shade_hl_re = '\%#.*$'
|
||||
else
|
||||
let shade_hl_re = '\%#\_.*\%'. win_last_line .'l'
|
||||
endif
|
||||
else
|
||||
" Both directions"
|
||||
if s:flag.within_line
|
||||
let shade_hl_re = '^.*\%#.*$'
|
||||
else
|
||||
let shade_hl_re = '\_.*'
|
||||
endif
|
||||
endif
|
||||
|
||||
call EasyMotion#highlight#add_highlight(
|
||||
\ shade_hl_re, g:EasyMotion_hl_group_shade)
|
||||
|
Loading…
Reference in New Issue
Block a user