Skip to content

Completions crash in fish #93

Description

@MrGreenTea

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. open fish
  2. bit complete
  3. check ~/.config/fish/completions/bit.fish
  4. type bit <TAB>
  5. wait and hit Ctrl+C
  6. get something like this
❯ bit
\e[0;39;49m\e]2;\cg\e[J                                                                                                                                                                        
\e[?25l\e[0;93;49m> bit \e[0;39;49m\e[0;39;49m\e[0;39;49m\e[J\eD\eD\eD\eD\eD\eD\eM\eM\eM\eM\eM\eM\e[0;97;46m\e[1B\e[0;90;103m status                      \e[0;97;40m Show the working tree st…
COMP_LINE bit   COMP_POINT  err: strconv.Atoi: parsing "": invalid syntax

Expected behavior
Get an overview/completion of all bit commands

Desktop (please complete the following information):

The installed completions file in ~/.config/fish/completions/bit.fish looks like this:

function __complete_bit
    set -lx COMP_LINE (commandline -cp)
    test -z (commandline -ct)
    and set COMP_LINE "$COMP_LINE "
    /usr/local/bin/bit
end
complete -f -c bit -a "(__complete_bit)"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions