Small refactoring.

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

View File

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