Fix to use move highlight condition

This commit is contained in:
haya14busa 2014-01-21 06:28:04 +09:00
parent b7bb754be8
commit b625144c96

View File

@ -341,8 +341,10 @@ function! EasyMotion#NextPrevious(visualmode, direction) " {{{
let re = s:previous.regexp let re = s:previous.regexp
let search_direction = (a:direction >= 1 ? 'b' : '') let search_direction = (a:direction >= 1 ? 'b' : '')
if g:EasyMotion_move_highlight
call EasyMotion#highlight#attach_autocmd() call EasyMotion#highlight#attach_autocmd()
call EasyMotion#highlight#add_highlight(re,'EasyMotionMoveHL') call EasyMotion#highlight#add_highlight(re,'EasyMotionMoveHL')
endif
if ! empty(a:visualmode) if ! empty(a:visualmode)
" FIXME: blink highlight " FIXME: blink highlight