Commits

Ali Gholami Rudi  committed 5f1f3b9

ropemacs: fixed getting buffer offset

  • Participants
  • Parent commits 5536b53

Comments (0)

Files changed (1)

File 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())