Commits

Anonymous committed e262ef4

ropemacs: fixed getting buffer offset

Comments (0)

Files changed (1)

rope/contrib/ropemacs.py

         filename = lisp.buffer_file_name()
         resource = libutils.path_to_resource(self.project, filename)
         offset = lisp.point_min() + lisp.point()
-        renamer = rope.refactor.rename.Rename(self.project, resource, 1)
+        renamer = rope.refactor.rename.Rename(self.project, resource, offset)
         changes = renamer.get_changes(newname)
         self.project.do(changes)
         self._reload_buffers(changes.get_changed_resources())