chatterino2
chatterino2 copied to clipboard
Emote/user tab completion completes using wrong word
Describe your issue Tab completion of emotes/usernames can also complete when moving to prior word.
Steps to reproduce
- Type a single word
- Type another word and tab complete to an emote/user
- Press left arrow until you are at the last character of the first word
- Press tab again
Expected behaviour Previous word tries to complete using the word
Observed behaviour Previous word thinks it's the second word so tried to complete using those characters
Screenshots https://user-images.githubusercontent.com/4962764/127768320-e14afc52-4b84-4ff3-ab03-c604c6f248e0.mp4
OS and Chatterino Version Arch Linux (N/A), Chatterino 2.3.3 (commit ae9f92de)
This is a hard one to explain (and title), hope the vid does it justice.
Can reproduce on ae9f92de
can also reproduce on 3cb1e51
I did some investigation and it looks like the completer doesn't respect changing the cursor.
This happens as well if the cursor is changed with the mouse or the entire content of the textbox with up-arrow/down-arrow.
This issue could probably be solved by adding a check inside of ResizingTextEdit::keyPressEvent
for those specific events.