Commit ccffc548 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

text: after undoing or redoing something, unset the mark

This fixes https://savannah.gnu.org/bugs/?48108,
and fixes https://savannah.gnu.org/bugs/?48157.
No related merge requests found
Showing with 2 additions and 0 deletions
+2 -0
......@@ -818,6 +818,7 @@ void do_undo(void)
renumber(f);
openfile->current_undo = openfile->current_undo->next;
openfile->last_action = OTHER;
openfile->mark_set = FALSE;
openfile->placewewant = xplustabs();
openfile->totsize = u->wassize;
set_modified();
......@@ -964,6 +965,7 @@ void do_redo(void)
openfile->current_undo = u;
openfile->last_action = OTHER;
openfile->mark_set = FALSE;
openfile->placewewant = xplustabs();
openfile->totsize = u->newsize;
set_modified();
......
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