textview: improve undo grouping when overwriting
authorChristian Hergert <chergert@redhat.com>
Thu, 23 Sep 2021 02:41:06 +0000 (19:41 -0700)
committerChristian Hergert <chergert@redhat.com>
Fri, 24 Sep 2021 23:37:59 +0000 (16:37 -0700)
commitc08ba636d48bcd7acdfaa68081b37153e88d4f20
treee8611d85c9dabe090dd39185eae37d59e0ffedcf
parentf8cd883e0d694009851368ce7613bba4dc5d93fe
textview: improve undo grouping when overwriting

We want to group in more than one undo group when removing a selection
and replacing it with a new character or characters, unless we're
replacing a single character. In that case, the natural thing is to treat
it as an atomic change.
gtk/gtktextview.c