c in visual mode doesn’t change the selection
Summary
Selecting a word in visual mode and then hitting c does not immediately delete the selection and switch to insert mode, instead it acts like c in normal mode, waiting for a movement to be entered.
Reproduction Steps
I tried this:
hx- Select any word in visual mode
- Hit
c
I expected this to happen:
That the selection immediately be deleted, and the mode switched to insert mode.
Instead, this happened:
The c command from normal mode
Helix log
No response
Platform
Linux
Terminal Emulator
tmux
Installation Method
flake
Helix Version
2dc286a
Thank you for reporting this issue. I did not manage to reproduce it, however. c in visual mode immediately clears the selection and switches to insert mode. I did try it in a few different environments and on nix-darwin, but didn't notice anything unusual.
I haven't tried it with the flake though, I wonder if you're getting upstream helix binaries from cachix...
Mind checking if the problem persists with a different installation method? Maybe nix-shell -p evil-helix if you have an up-to-date unstable channel?
Sorry for that, my bug report was lacking detail. This only seems to happen when making a selection using helix quickjump feature (gw), so selecting a word with gw and then pressing c seems to reproduce the issue.
Oh, I see now; when you initiate a jump while in normal mode, it'll perform a selection, but stay in normal mode, which in turn results in the behavior you described. I'll have to vimify gw.
Same thing happens when using object motion to select:
For example, text is:
word1 'word2' word3
And I want to change word2 inside the quotes.
The c works after selecting with vw but doesn't work after selecting with mi'.