check if path is actually in list at BufDelete

Fixes a bug that was introduced by the previous commit: 610c36c
This commit is contained in:
Marco Hinz 2013-04-12 01:29:55 +02:00
parent 610c36cf04
commit d4c6681577

View File

@ -51,7 +51,7 @@ augroup signify
autocmd BufEnter * let s:path = resolve(expand('<afile>:p'))
autocmd BufWritePost * call s:start(s:path)
autocmd BufDelete * call s:stop(s:path) | call remove(s:sy, s:path)
autocmd BufDelete * call s:stop(s:path) | if has_key(s:sy, s:path) | call remove(s:sy, s:path) | endif
autocmd VimEnter,ColorScheme * call s:colors_set()
if get(g:, 'signify_update_on_bufenter', 1)