fixed small tabbing bug

--HG--
branch : pmacs2
This commit is contained in:
Erik Osheim 2009-07-24 17:10:14 -04:00
parent 741cfcebf3
commit eefd355953
1 changed files with 3 additions and 1 deletions

4
tab.py
View File

@ -294,7 +294,9 @@ class StackTabber2(Tabber):
else:
return 0
def _get_next_level(self):
return self._get_curr_level() + self.mode.tabwidth
curr = self._get_curr_level()
if curr is None: return None
return curr + self.mode.tabwidth
def _save_curr_level(self):
self.curr_level = self._get_curr_level()