Don't check for CtrlPLinePre

Fixes #450
This commit is contained in:
Kien N 2013-07-29 11:00:25 +07:00
parent 83397bd05b
commit b5d3fe66a5

View File

@ -1609,8 +1609,7 @@ endf
fu! ctrlp#syntax() fu! ctrlp#syntax()
if ctrlp#nosy() | retu | en if ctrlp#nosy() | retu | en
for [ke, va] in items(s:hlgrps) | cal ctrlp#hicheck('CtrlP'.ke, va) | endfo for [ke, va] in items(s:hlgrps) | cal ctrlp#hicheck('CtrlP'.ke, va) | endfo
if !hlexists('CtrlPLinePre') if synIDattr(synIDtrans(hlID('Normal')), 'bg') !~ '^-1$\|^$'
\ && synIDattr(synIDtrans(hlID('Normal')), 'bg') !~ '^-1$\|^$'
sil! exe 'hi CtrlPLinePre '.( has("gui_running") ? 'gui' : 'cterm' ).'fg=bg' sil! exe 'hi CtrlPLinePre '.( has("gui_running") ? 'gui' : 'cterm' ).'fg=bg'
en en
sy match CtrlPNoEntries '^ == NO ENTRIES ==$' sy match CtrlPNoEntries '^ == NO ENTRIES ==$'