Do not set up inner state if it is already setup.

This makes _(setup|teardown)_inner_state symmetric.
This commit is contained in:
Holger Rapp 2015-07-12 20:05:33 +02:00
parent 33db8b4ab0
commit 29d7080d64

View File

@ -336,6 +336,8 @@ class SnippetManager(object):
def _setup_inner_state(self):
"""Map keys and create autocommands that should only be defined when a
snippet is active."""
if self._inner_state_up:
return
if self.expand_trigger != self.forward_trigger:
_vim.command('inoremap <buffer> <silent> ' + self.forward_trigger +
' <C-R>=UltiSnips#JumpForwards()<cr>')