GtkTextView inproperly renders buffer cursor when it is located after an emoji (that both has text and icon representation) followed by an Unicode VS16 char
Steps to reproduce
- Open gtk3-widget-factory (gtk4 is not affected)
- Go the "Page 2" and focus the TextView widget
- Right click, activate the "Insert emoji" context entry and select an arrow sign or one of the religious symbols under the symbols category
- make sure to place the buffer cursor just behind the emoticon
Current behavior
At the moment, the the cursor renders at the correct location, but a second cursor is rendered just about one char off to the right. (See attached screenshot)
Expected outcome
That just one cursor, just behind the emoji, renders.
Version information
- gtk3 3.24.31, both on X and Wayland
- openSUSE Tumbleweed 20220115
Additional information
This only happens if the Emoji is directly followed by an Unicode Variation Selector 16 (0xFE0F). This is the case when inserting Emojis using "Insert Emoji", however not if pasting any Emoji from the GNOME Characters App.
If you paste such an Emoji from "Characters", the cursor behaves as expected until you insert the VS16 using <Ctrl>u FE0F.