From d4c6681577a170a85ad8759157003683f1d0ff74 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Fri, 12 Apr 2013 01:29:55 +0200 Subject: [PATCH] check if path is actually in list at BufDelete Fixes a bug that was introduced by the previous commit: 610c36c --- plugin/signify.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/signify.vim b/plugin/signify.vim index 7d3996d..c0edd26 100644 --- a/plugin/signify.vim +++ b/plugin/signify.vim @@ -51,7 +51,7 @@ augroup signify autocmd BufEnter * let s:path = resolve(expand(':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)