Fix preview autocmd being cleared for all buffers (#597)

Fixes https://github.com/davidhalter/jedi-vim/pull/582#issuecomment-235986169.
This commit is contained in:
Tommy Allen
2016-07-28 17:02:21 -04:00
committed by Daniel Hahler
parent 2eabe57616
commit b7e42e6ad5

View File

@@ -44,8 +44,7 @@ if g:jedi#auto_initialization
if g:jedi#auto_close_doc if g:jedi#auto_close_doc
" close preview if its still open after insert " close preview if its still open after insert
augroup jedi_preview augroup jedi_preview
autocmd! autocmd! InsertLeave <buffer> if pumvisible() == 0|pclose|endif
autocmd InsertLeave <buffer> if pumvisible() == 0|pclose|endif
augroup END augroup END
endif endif
endif endif