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