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

[input-] fix word locator for Ctrl+Right motion #2663

Merged
merged 1 commit into from
Jan 14, 2025

Conversation

midichef
Copy link
Contributor

@midichef midichef commented Jan 3, 2025

In phrases like "word     next", moving one word right went to the incorrect location, to 1 character after the end of the word, which is in the empty space if the word is followed by several spaces:

echo 'word     second---third   ' |vd -

This PR also renames find_nonword() to find_word().

In phrases like "word     next", moving one word right went to the
incorrect location, to 1 character after the end of the word.
Copy link
Owner

@saulpw saulpw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm surprised I never noticed this before. Nice catch and fix.

@anjakefala anjakefala merged commit 70699c1 into saulpw:develop Jan 14, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants