Skip to content

Vi mode indicator not updating on ctrl-c when in default mode #8103

@SpikeTheMarmot

Description

@SpikeTheMarmot
$ fish --version
fish, version 3.2.2
$ echo $version
3.2.2
$ lsb_release -d
Description:	Arch Linux
$ uname -a
Linux marmot 5.12.13-arch1-2 #1 SMP PREEMPT Fri, 25 Jun 2021 22:56:51 +0000 x86_64 GNU/Linux
$ echo $TERM
xterm-kitty

Hey, I just enabled vi-mode for the first time and stumbled upon this little bug with the mode indicator.

If you are in normal/default mode and cancel the current input with ctrl-c the shell prints a new prompt in the next line as expected but does not update the mode indicator.
As far as I can tell this also happens in the newest version and I am pretty sure the problem is a missing repaint-mode in the following line:

bind -s --preset -m insert \cc cancel-commandline

After changing the line to

bind -s --preset -m insert \cc cancel-commandline repaint-mode

the mode indicator behaves as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething that's not working as intended

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions