Do not set up inner state if it is already setup.
This makes _(setup|teardown)_inner_state symmetric.
This commit is contained in:
parent
33db8b4ab0
commit
29d7080d64
@ -336,6 +336,8 @@ class SnippetManager(object):
|
|||||||
def _setup_inner_state(self):
|
def _setup_inner_state(self):
|
||||||
"""Map keys and create autocommands that should only be defined when a
|
"""Map keys and create autocommands that should only be defined when a
|
||||||
snippet is active."""
|
snippet is active."""
|
||||||
|
if self._inner_state_up:
|
||||||
|
return
|
||||||
if self.expand_trigger != self.forward_trigger:
|
if self.expand_trigger != self.forward_trigger:
|
||||||
_vim.command('inoremap <buffer> <silent> ' + self.forward_trigger +
|
_vim.command('inoremap <buffer> <silent> ' + self.forward_trigger +
|
||||||
' <C-R>=UltiSnips#JumpForwards()<cr>')
|
' <C-R>=UltiSnips#JumpForwards()<cr>')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user