Bug 505238

Summary: Pressing right arrow key after autocompleting someone's name messes up the final message
Product: [Applications] NeoChat Reporter: Nate Graham <nate>
Component: GeneralAssignee: Tobias Fella <fella>
Status: RESOLVED FIXED    
Severity: normal CC: carl, john.kizer, josh
Priority: NOR    
Version First Reported In: git master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Nate Graham 2025-06-05 14:20:12 UTC
STEPS TO REPRODUCE
1. Start typing a message with a mention in it; Type "@", then someone's name, then tab to autocomplete
2. With the text in the text field still consisting entirely of "@[some name]", press the right arrow key a number of times
3. Type any other text
4. Press Enter to send the message


OBSERVED RESULT
Message says something like:
> Tobias Fellaa](https://matrix.to/#/@tobiasfella:kde.org) this should fail


EXPECTED RESULT
Message says:
> Tobias Fella this should fail
Comment 1 John Kizer 2025-06-16 05:16:53 UTC
Hmm, I can't reproduce this in yesterday's git master, using either a single press, five, or ten presses of the right arrow after the Tab key - is it still happening for you?

For what it's worth, what you mentioned in step 2 stuck out to me - when I Tab to autocomplete a name, the at symbol is no longer shown - the autocompleted name is simply shown in a colorful bold font. Are you still seeing the @ after tabbing to autocomplete?

Thanks!
Comment 2 Nate Graham 2025-06-17 17:37:21 UTC
Looks like it's fixed now in current git master indeed!