To reproduce:
- Start fish as
fish --no-config -C 'fish --no-config --init-command='fish_vi_key_bindings; bind ctrl-c cancel-commandline; bind --mode insert ctrl-c cancel-commandline; bind --mode visual ctrl-c cancel-commandline'
- Enter some characters, e.g.
asdf
- Press
escape to get into normal mode.
- Press
ctrl-c to cancel the command line. Observe that the last letter gets overwritten, turning asdf into asd^C.
The same happens when pressing ctrl-c in visual mode. In insert mode, the desired behavior (turning asdf into asdf^C happens).
Tested on b0be53e.
To reproduce:
fish --no-config -C 'fish --no-config --init-command='fish_vi_key_bindings; bind ctrl-c cancel-commandline; bind --mode insert ctrl-c cancel-commandline; bind --mode visual ctrl-c cancel-commandline'asdfescapeto get into normal mode.ctrl-cto cancel the command line. Observe that the last letter gets overwritten, turningasdfintoasd^C.The same happens when pressing
ctrl-cin visual mode. In insert mode, the desired behavior (turningasdfintoasdf^Chappens).Tested on b0be53e.