Exit any snippets when entering a unite buffer.

Fixes #578
This commit is contained in:
Holger Rapp 2015-10-17 14:49:57 +02:00
parent baa9c97092
commit cc6ac3c064

View File

@ -374,6 +374,10 @@ class SnippetManager(object):
'autocmd CmdwinEnter * call UltiSnips#LeavingBuffer()') 'autocmd CmdwinEnter * call UltiSnips#LeavingBuffer()')
_vim.command( _vim.command(
'autocmd CmdwinLeave * call UltiSnips#LeavingBuffer()') 'autocmd CmdwinLeave * call UltiSnips#LeavingBuffer()')
# Also exit the snippet when we enter a unite complete buffer.
_vim.command('autocmd Filetype unite call UltiSnips#LeavingBuffer()')
_vim.command('augroup END') _vim.command('augroup END')
_vim.command('silent doautocmd <nomodeline> User UltiSnipsEnterFirstSnippet') _vim.command('silent doautocmd <nomodeline> User UltiSnipsEnterFirstSnippet')