Calling GtkTextBuffer::undo undoes all interactive changes
Steps to reproduce
Interactive way:
- Open GTK Demo
- Run
Text View > Undo and Redo
- Type some text
- Press Ctrl+Z
Code way:
- Create
GtkTextBuffer
- Insert some text using one or more
GtkTextBuffer.insert_interactive_at_cursor
calls - Call
GtkTextBuffer::undo
Current behavior
All changes are discarded
Expected outcome
Last change is discarded
Version information
- GTK: 4.3.1
-
Runtime:
org.gnome.Platform/x86_64/master