Skip to content

Commit a3071f3

Browse files
committed
fix(complete): remove empty elements
1 parent 7fcf0c6 commit a3071f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

completions/complete

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ _comp_cmd_complete()
4040
local -a opts=($(compgen -W '$(_parse_usage help "-s $1")' -- "$cur"))
4141
# -F, -C do not work the expected way with compgen
4242
[[ $1 != *compgen ]] || opts=("${opts[@]//-[FC]/}")
43-
COMPREPLY=($(compgen -W '"${opts[@]}"' -- "$cur"))
43+
COMPREPLY=($(compgen -W '"${opts[@]}"' -X '' -- "$cur"))
4444
else
4545
COMPREPLY=($(compgen -A command -- "$cur"))
4646
fi

0 commit comments

Comments
 (0)