parent 2a2da3fa
......@@ -183,8 +183,8 @@ class UndoableBuffer(Gtk.TextBuffer):
self.place_cursor(start)
else:
start = self.get_iter_at_offset(undo_action.start)
stop = self.get_iter_at_offset(undo_action.end)
self.insert(start, undo_action.text)
stop = self.get_iter_at_offset(undo_action.end)
if undo_action.delete_key_used:
self.place_cursor(start)
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment