gtktexthistory: restore 'modified' flag on redo
authorG.Willems <g.willems.dev@laposte.net>
Thu, 17 Aug 2023 20:26:00 +0000 (22:26 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 24 Aug 2023 14:24:41 +0000 (10:24 -0400)
commitc018af302376e6c3a57525984665812a82f6327c
tree1a83504cfaee33bf3b1589311af4492dffdbc5dc
parentacd874ec5507f45ad22de7a91478433d27f640a4
gtktexthistory: restore 'modified' flag on redo

When redoing a history entry, its `is_modified` flag is not
reflected to the history state tracker. So GtkTextBuffers may
expose a modified=FALSE status, despite a change was actually
applied to the buffer.

For the undo case, an `is_modified_set` flag was set on the last
entry of the undo queue when a change of the modified state of
the history is requested. This commit does the same on the first
entry of the redo queue.

Closes #5777
gtk/gtktexthistory.c
testsuite/gtk/texthistory.c