-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
ctrl-W sometimes deletes a character from the wrong side of the cursor #2390
Labels
C-bug
Category: This is a bug
Comments
I think I noticed something with |
pickfire
added a commit
to pickfire/helix
that referenced
this issue
May 8, 2022
Currently ctrl-w in insert mode deletes the cursor which results in unexpected behavior. The patch also reduces the selection to cursor before performing prev word to remove the behavior of removing unnecessary text when nothing should be removed. 1. `::#(|)#::` after `ctrl-w` should be `#(|)#::`, previously `#(|)#:` 2. `#(|::)#` after `ctrl-w` should be `#(|::)#`, previously `#(|)#` Fix helix-editor#2390
archseer
pushed a commit
that referenced
this issue
May 11, 2022
Currently ctrl-w in insert mode deletes the cursor which results in unexpected behavior. The patch also reduces the selection to cursor before performing prev word to remove the behavior of removing unnecessary text when nothing should be removed. 1. `::#(|)#::` after `ctrl-w` should be `#(|)#::`, previously `#(|)#:` 2. `#(|::)#` after `ctrl-w` should be `#(|::)#`, previously `#(|)#` Fix #2390
mtoohey31
pushed a commit
to mtoohey31/helix
that referenced
this issue
Jun 15, 2022
Currently ctrl-w in insert mode deletes the cursor which results in unexpected behavior. The patch also reduces the selection to cursor before performing prev word to remove the behavior of removing unnecessary text when nothing should be removed. 1. `::#(|)#::` after `ctrl-w` should be `#(|)#::`, previously `#(|)#:` 2. `#(|::)#` after `ctrl-w` should be `#(|::)#`, previously `#(|)#` Fix helix-editor#2390
mtoohey31
pushed a commit
to mtoohey31/helix
that referenced
this issue
Jun 15, 2022
Currently ctrl-w in insert mode deletes the cursor which results in unexpected behavior. The patch also reduces the selection to cursor before performing prev word to remove the behavior of removing unnecessary text when nothing should be removed. 1. `::#(|)#::` after `ctrl-w` should be `#(|)#::`, previously `#(|)#:` 2. `#(|::)#` after `ctrl-w` should be `#(|::)#`, previously `#(|)#` Fix helix-editor#2390
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
When in insert mode, you can use ctrl-W to delete words from the left of the cursor, like many other terminal programs. Sometimes, this also deletes the character to the right of the cursor in addition to the word to the left.
This seems to be triggered by punctuation adjacent to letters; I have not managed to work out under exactly what circumstances it happens, but I have found that:
Reproduction Steps
Recording, if you'd prefer that: https://asciinema.org/a/EQ1VxVOSIMiWT9Upk4OSyBMQw
hello::world::I::have::some::namespaces
have
and the following::
, with no selection.i
, thenctrl-W
seven times.::some::namespaces
; instead, it isme::namespaces
.^W
after there is no more text at the start of the line deletes one additional character each time.Helix log
~/.cache/helix/helix.log
Nothing relevant, only these two lines complaining about my theme:Platform
Linux
Terminal Emulator
kitty 0.25.0
Helix Version
22.03 (Arch package), and also git 22.03-185-g09a17e4f
The text was updated successfully, but these errors were encountered: