Skip to content

Commit

Permalink
Update fish_completions.go
Browse files Browse the repository at this point in the history
Co-authored-by: Johannes Altmanninger <aclopte@gmail.com>
  • Loading branch information
marckhouzam and krobelus committed Jan 30, 2021
1 parent c7af2e6 commit 9aa385a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fish_completions.go
Expand Up @@ -58,7 +58,7 @@ function __%[1]s_perform_completion
# Let's ignore them or else it will break completion.
# Ref: https://github.com/spf13/cobra/issues/1279
for line in $results[-1..1]
if test (string trim $line) = ""
if test (string trim -- $line) = ""
# Found an empty line, remove it
set results $results[1..-2]
else
Expand Down

0 comments on commit 9aa385a

Please sign in to comment.