compatibility

This commit is contained in:
David Halter
2012-09-06 02:26:24 +02:00
parent d30c0e7e34
commit 8ebb1fbbfe
2 changed files with 7 additions and 3 deletions

View File

@@ -144,7 +144,7 @@ class ModuleWithCursor(Module):
while pos > (1, 0):
# remove non important white space
line = self.get_line(pos[0])
while pos > 0 and line[pos[1] - 1].isspace():
while pos[1] > 0 and line[pos[1] - 1].isspace():
pos = pos[0], pos[1] - 1
try: