Skip to content

Shell completion after unexpected word messes up the prompt #596

Description

@dhanak

When I attempt to perform shell completion after an unexpected word in an argument with mise, the verbose error message from usage messes up the shell prompt.

For example:

$ mise help <tab>Error:   × unexpected word: help

mise

After pressing typing mise help and pressing tab, a multi-row error message is printed, and the prompt, including the current input, becomes garbled and overwritten. This makes it really hard to figure out what's already typed and what's new.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions