Small refactoring.
This commit is contained in:
parent
f596d98065
commit
fc5d2e61dd
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user