RefactoringRope/Refactoring.py

changeset 116
50cb62506ab2
parent 106
b2b2107b8047
child 121
5d1648fd695b
diff -r 60f4a90927e6 -r 50cb62506ab2 RefactoringRope/Refactoring.py
--- a/RefactoringRope/Refactoring.py	Wed Mar 11 18:40:23 2015 +0100
+++ b/RefactoringRope/Refactoring.py	Sat Mar 14 14:23:56 2015 +0100
@@ -938,7 +938,7 @@
         @param index index into line for the offset (integer)
         @return rope compliant offset into the file (integer)
         """
-        source = self.__editor.text()
+        source = editor.text()
         offset = len("".join(source.splitlines(True)[:line])) + index
         if editor.eolMode() == QsciScintilla.EolWindows:
             offset -= line

eric ide

mercurial