Merge branch 'fix-matchaddpos'

This commit is contained in:
haya14busa 2014-06-19 17:45:46 +09:00
commit 42e02a741c

View File

@ -978,16 +978,14 @@ function! s:PromptUser(groups) "{{{
\ '') \ '')
" Highlight targets {{{ " Highlight targets {{{
if marker_chars_len == 1 let _hl_group =
let _hl_group = g:EasyMotion_hl_group_target \ (marker_chars_len == 1) ? g:EasyMotion_hl_group_target
elseif i == 0 \ : (i == 0) ? g:EasyMotion_hl2_first_group_target
let _hl_group = g:EasyMotion_hl2_first_group_target \ : g:EasyMotion_hl2_second_group_target
else
let _hl_group = g:EasyMotion_hl2_second_group_target
endif
if exists('*matchaddpos') if exists('*matchaddpos')
call EasyMotion#highlight#add_pos_highlight( call EasyMotion#highlight#add_pos_highlight(
\ line_num, col_num, _hl_group) \ line_num, col_num + col_add, _hl_group)
else else
call EasyMotion#highlight#add_highlight( call EasyMotion#highlight#add_highlight(
\ '\%' . line_num . 'l' . target_col_regexp, \ '\%' . line_num . 'l' . target_col_regexp,