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.
This commit is contained in:
Benno Schulenberg
2016-06-07 13:04:51 +02:00
parent 83b89a49ef
commit ccffc548e1

View File

@@ -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();