undo after insertion of emoji with selection doesn't removes highlight in textview
Doing undo after insertion of emoji via emoji popover in textview with selection doesn't remove the selection highlight properly (though the text are actually deselected on undo)
How to reproduce:
- Open gtk4-widget-factory -> Page 2
- Select all text in the main textview there (right-click -> select all)
- Rightclick -> Insert emoji -> insert some emoji (which inserts the emoji as the first character in the view)
- Now undo with ctrl+Z
Result: The highlight of the first line is removed, the rest stays as such until some interaction with the line happens.
Here, either the undo should be fixed, and/or inserting emoji with selection should replace the selected text (this is the case in gtk3 too)