- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alt+Backspace on one-letter word erases too much #3390
Comments
Fix |
Here's the fix.
I'm not sure about the intent of that "for" loop, the rest (the two "while" loops later) does the job perfectly. The only thing I can think of is removing trailing '\0' characters, if any. For that purpose, it was off by one, looking at the wrong character, always removing the last one. |
Note: Same story for Ctrl+Left. |
Replying to egmont:
I agree that that loop can be removed.
Branch: 3390_input_backward_word |
|
|
Important
This issue was migrated from Trac:
egmont
(@egmontkob)Either on the command line, or in any other text entry field (e.g. copy file to) enter a string where the last word consists of one single letter only. E.g. "abc de f".
Press Alt+Backspace.
Expected behavior: Remove the last word, that is, the letter "f" only, leaving "abc de ".
Actual behavior: Yet another word is removed, leaving "abc ".
Note
Original attachments:
egmont
(@egmontkob) onJan 20, 2015 at 19:01 UTC
The text was updated successfully, but these errors were encountered: