--- 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