Skip to content

Unknown command: __fish_cancel_commandline #7145

@herrbischoff

Description

@herrbischoff

Environment

# fish --version
fish, version 3.1.2

# echo $version
3.1.2

# uname -a
FreeBSD [REDACTED] 12.1-RELEASE-p6 FreeBSD 12.1-RELEASE-p6 GENERIC  amd64

# echo $TERM
xterm-256color

Issue

Unfortunately, this is one of those "it happens sometimes and cannot be directly reproduced" issues. I'm also using tmux a lot, so maybe there are contributing factors.

Sometimes, fish gets into a state that when I autocomplete a path or filename, manually move the cursor/insertion point back a couple of characters and then press Ctrl-C, fish hangs and immediately writes the error message in the title. Example (^ is the cursor):

# cd .config/fish/fun^ctions

After Ctrl-C:

# cd .config/fish/funUnknown command: __fish_cancel_commandline

When this happens, I need to close the session and open a new one, after which it works as expected again. I do not use any plugins (with the possible exception of the Pure prompt), only my own, rather simple functions. My fish config is publicly available here: https://github.com/herrbischoff/dotpr0n/tree/master/.config/fish

Please let me know what further information you need.

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