Small refactoring.

This commit is contained in:
Holger Rapp 2014-01-05 08:01:42 +01:00
parent f596d98065
commit fc5d2e61dd

View File

@ -806,9 +806,8 @@ class SnippetManager(object):
def _current_snippet_is_done(self): def _current_snippet_is_done(self):
self._csnippets.pop() self._csnippets.pop()
if _vim.eval("g:UltiSnipsClearJumpTrigger") != "0": if not self._csnippets and _vim.eval("g:UltiSnipsClearJumpTrigger") != "0":
if len(self._csnippets) == 0: _vim.command("call UltiSnips_RestoreInnerKeys()")
_vim.command("call UltiSnips_RestoreInnerKeys()")
def _jump(self, backwards = False): def _jump(self, backwards = False):
jumped = False jumped = False
@ -1177,4 +1176,3 @@ class SnippetManager(object):
UltiSnips_Manager = SnippetManager() UltiSnips_Manager = SnippetManager()