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.
parent 83b89a49
Showing with 2 additions and 0 deletions
+2 -0
...@@ -818,6 +818,7 @@ void do_undo(void) ...@@ -818,6 +818,7 @@ void do_undo(void)
renumber(f); renumber(f);
openfile->current_undo = openfile->current_undo->next; openfile->current_undo = openfile->current_undo->next;
openfile->last_action = OTHER; openfile->last_action = OTHER;
openfile->mark_set = FALSE;
openfile->placewewant = xplustabs(); openfile->placewewant = xplustabs();
openfile->totsize = u->wassize; openfile->totsize = u->wassize;
set_modified(); set_modified();
...@@ -964,6 +965,7 @@ void do_redo(void) ...@@ -964,6 +965,7 @@ void do_redo(void)
openfile->current_undo = u; openfile->current_undo = u;
openfile->last_action = OTHER; openfile->last_action = OTHER;
openfile->mark_set = FALSE;
openfile->placewewant = xplustabs(); openfile->placewewant = xplustabs();
openfile->totsize = u->newsize; openfile->totsize = u->newsize;
set_modified(); 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