forked from VimPlug/jedi-vim
Prevent duplication of InsertLeave autocmds in buffers (#582)
This commit is contained in:
committed by
Daniel Hahler
parent
8334e505b3
commit
70360437cd
@@ -49,5 +49,6 @@ Daniel Hahler (@blueyed)
|
|||||||
Dave Honneffer (@pearofducks)
|
Dave Honneffer (@pearofducks)
|
||||||
Bagrat Aznauryan (@n9code)
|
Bagrat Aznauryan (@n9code)
|
||||||
Tomoyuki Kashiro (@kashiro)
|
Tomoyuki Kashiro (@kashiro)
|
||||||
|
Tommy Allen (@tweekmonster)
|
||||||
|
|
||||||
@something are github user names.
|
@something are github user names.
|
||||||
|
|||||||
@@ -43,6 +43,9 @@ 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
|
||||||
autocmd InsertLeave <buffer> if pumvisible() == 0|pclose|endif
|
augroup jedi_preview
|
||||||
|
autocmd!
|
||||||
|
autocmd InsertLeave <buffer> if pumvisible() == 0|pclose|endif
|
||||||
|
augroup END
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user