Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
M-d sometimes deletes more than one word #4747
Originally reported at https://bugs.debian.org/885397 and reproducible with fish 2.7.1.
When I delete a word with M-d (Alt + D), Fish ignores single-letter
and have my cursor at the marked ^, M-d deletes the word
However, if the arguments are single letters—e.g.,
M-d deletes both
This behavior does not appear terminal-linked; I can reproduce both in
Yup, what happens is:
The state-machine starts in "s_always_one", removes the "a", then goes to "s_whitespace". It consumes the whitespace, goes to "s_alphanumeric", and consumes alphanumeric characters until it finds something that isn't alphanumeric.
We want to change this particular case, but I'm not quite sure what behavior we want exactly.
Because one of our tests does successive "forward-word" (which moves just like
These jumps from