All tests pass again
This commit is contained in:
parent
ade790cc60
commit
4cdf05d79c
@ -10,8 +10,6 @@ __all__ = [ "Mirror", "Transformation", "SnippetInstance", "StartMarker" ]
|
|||||||
|
|
||||||
from PySnipEmu.debug import debug
|
from PySnipEmu.debug import debug
|
||||||
|
|
||||||
ENDING_TAB = 0
|
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# Helper class #
|
# Helper class #
|
||||||
###########################################################################
|
###########################################################################
|
||||||
@ -540,6 +538,9 @@ class SnippetInstance(TextObject):
|
|||||||
|
|
||||||
|
|
||||||
def select_next_tab(self, backwards = False):
|
def select_next_tab(self, backwards = False):
|
||||||
|
if self._cts is None:
|
||||||
|
return
|
||||||
|
|
||||||
if backwards:
|
if backwards:
|
||||||
cts_bf = self._cts
|
cts_bf = self._cts
|
||||||
|
|
||||||
@ -552,9 +553,9 @@ class SnippetInstance(TextObject):
|
|||||||
else:
|
else:
|
||||||
res = self._get_next_tab(self._cts)
|
res = self._get_next_tab(self._cts)
|
||||||
if res is None:
|
if res is None:
|
||||||
self._cts = 0
|
self._cts = None
|
||||||
if 0 not in self._tabstops:
|
if 0 in self._tabstops:
|
||||||
return None
|
return self._tabstops[0]
|
||||||
else:
|
else:
|
||||||
self._cts, ts = res
|
self._cts, ts = res
|
||||||
return ts
|
return ts
|
||||||
|
Loading…
Reference in New Issue
Block a user