From b7e42e6ad59d946bcf15a04afc4b3605775f5c07 Mon Sep 17 00:00:00 2001 From: Tommy Allen Date: Thu, 28 Jul 2016 17:02:21 -0400 Subject: [PATCH] Fix preview autocmd being cleared for all buffers (#597) Fixes https://github.com/davidhalter/jedi-vim/pull/582#issuecomment-235986169. --- ftplugin/python/jedi.vim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ftplugin/python/jedi.vim b/ftplugin/python/jedi.vim index aa29e51..18caa48 100644 --- a/ftplugin/python/jedi.vim +++ b/ftplugin/python/jedi.vim @@ -44,8 +44,7 @@ if g:jedi#auto_initialization if g:jedi#auto_close_doc " close preview if its still open after insert augroup jedi_preview - autocmd! - autocmd InsertLeave if pumvisible() == 0|pclose|endif + autocmd! InsertLeave if pumvisible() == 0|pclose|endif augroup END endif endif