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.master
parent
83b89a49ef
commit
ccffc548e1
|
@ -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)
|
||||||
|
|
||||||
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();
|
||||||
|
|
Loading…
Reference in New Issue