Commits

Anonymous committed 44e8a2f

not asking buffer content when buffer is not modified

  • Participants
  • Parent commits a1e84ff

Comments (0)

Files changed (1)

ropemacs/interface.py

         return lisp.point() - 1
 
     def _get_text(self):
+        if not lisp.buffer_modified_p():
+            return self._get_resource().read()
         end = lisp.buffer_size() + 1
         old_min = lisp.point_min()
         old_max = lisp.point_max()