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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user