From 7cc6614bd475eef7ea8918837e81a0fe92aac73e Mon Sep 17 00:00:00 2001 From: Potato42 Date: Wed, 25 Jan 2017 13:52:51 -0800 Subject: [PATCH] Only unlet b:supertab_close_preview if it exists This change fixes a problem where Vim 7.3 would exit with a non-zero code when `g:SuperTabClosePreviewOnPopupClose` is 1. I see no reason why `b:supertab_close_preview` should be unlet silently if it has already been determined that it doesn't exist. In addition, I removed the `silent!` part since it is no longer needed. --- plugin/supertab.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/supertab.vim b/plugin/supertab.vim index ba8f4dd..797088d 100644 --- a/plugin/supertab.vim +++ b/plugin/supertab.vim @@ -752,8 +752,8 @@ function! s:ClosePreview() " {{{ " ignore: no autocmds defined endtry endif + unlet b:supertab_close_preview endif - silent! unlet b:supertab_close_preview endfunction " }}} function! s:ReleaseKeyPresses() " {{{