Skip to content
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

move_word is inconsistent on last letter of a word #7353

Closed
sgrj opened this issue Sep 27, 2020 · 0 comments
Closed

move_word is inconsistent on last letter of a word #7353

sgrj opened this issue Sep 27, 2020 · 0 comments
Labels
bug Something that's not working as intended
Milestone

Comments

@sgrj
Copy link
Contributor

sgrj commented Sep 27, 2020

This affects the master version, and manifests in different ways.

  1. Pressing alt-d on the last letter of a word deletes the last letter and the trailing whitespace, whereas alt-d on any other letter only deletes until the end of the word. E.g., given
abc def

when the cursor is on c, then alt-d results in

abdef

while when the cursor is on b, then alt-d results in

a def
  1. Using the w motion in vi mode on the last letter of a word moves the cursor to the second letter of the next word, whereas w on any other letter moves to the first letter of the next word. E.g., given
abc def

when the cursor is on c, then w moves the cursor to e, while when the cursor is on a or b, then w moves the cursor to d.

  1. This is also the root cause for vi binding 'e' has wrong behaviour on second-to-last char #4025 (the description there is outdated: after ce65709, when the cursor is on 1 in 12 345, the cursor moves to the space, but it should move to the 2)
@faho faho added the bug Something that's not working as intended label Sep 27, 2020
@faho faho added this to the fish 3.2.0 milestone Sep 27, 2020
@faho faho closed this as completed Sep 27, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something that's not working as intended
Projects
None yet
Development

No branches or pull requests

2 participants