arbelt / fish-plugin-scmpuff

2 stars 3 forks source link

Array indices start at 1 error #4

Open milesj opened 5 years ago

milesj commented 5 years ago

I get this error when using git status and there are no local changes.

➜ gs
~/.config/fish/functions/scmpuff_status.fish (line 15): array indices start at 1, not 0.
        set -gx "$scmpuff_env_char""$e" "$files[$e]"
                                                 ^
in function 'scmpuff_status'
        called on line 2 of file -

in function 'gs'
        called on standard input

If I modify a file, it goes away.

milesj commented 5 years ago

@arbelt This would fix it https://github.com/arbelt/fish-plugin-scmpuff/pull/3

milesj commented 4 years ago

Setup a new computer and ran into this again :P