Commits

Anonymous committed 2331b26

worder: clean up; no need to change offset

Comments (0)

Files changed (1)

rope/base/worder.py

 
     def _find_string_start(self, offset):
         kind = self.code[offset]
-        offset -= 1
         try:
-            return self.code.rindex(kind, 0, offset)
+            return self.code.rindex(kind, 0, offset - 1)
         except ValueError:
             return 0