Ctrl+Z Undo function ignores final word and empty state
- Gajim 1.7.1
- ubuntu 22.04
ctrl+z (undo) seems to not be working right in multiple ways in the message input field.
Case 1
- type "abc def" in gajim message input box
- delete this text
- highlight text, "example text"
- press ctrl+c to copy highlighted text
- click message input box in gajim
- press ctrl+v to paste
- press ctrl+z to undo
What I expect to happen
I expect the text pasted into the message input box to disappear and the box to be empty.
What actually happens
The first word we typed, "abc", remains in the message input box.
It seems like gajim is only saving message state when a space is entered. It does not save state on the final word of a sentence/string (which is also the first word when there is only one word input) or when the input is empty, which is not how text editors usually work. Is this not being handled by a library?
Case 2
- switch to a different chat window
- highlight a word and ctrl+c
- select message input field and ctrl+v
- press ctrl+z
What I expect to happen
Pasted text disappears.
What actually happens
Pasted text disappears, sometimes. Sometimes nothing happens.
Case 3
- switch to a different chat window
- highlight a word
- middle-click in message input field to paste highlighted word
- press ctrl+z
What I expect to happen
Pasted text disappears.
What actually happens
Nothing.