Verify that shade_hl_id is set to prevent error message

This commit is contained in:
Kim Silkebækken 2011-03-28 23:24:00 +02:00
parent f26366baab
commit a29f73d812

View File

@ -369,7 +369,7 @@
redraw
" Remove shading
if g:EasyMotion_shade
if g:EasyMotion_shade && exists('shade_hl_id')
call matchdelete(shade_hl_id)
endif