Skip to content

Commit 58e437f

Browse files
authored
fix: zsh completion colors (#383)
1 parent cfee786 commit 58e437f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/completions/argc.zsh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ _argc_completer() {
99
done < <(argc --argc-compgen zsh $'\0' $new_words 2>/dev/null)
1010
for candidate in ${candidates[@]}; do
1111
IFS=$'\t' read -r value display color_key color <<< "$candidate"
12-
colors="$colors:=(#b)($color_key)( * -- *)=0=$color=2;37:=(#b)($color_key)()=0=$color=2;37"
12+
colors="$colors:=(#b)($color_key)([ ]## -- *)=0=$color=2:=(#b)($color_key)=0=$color"
1313
values+=( "${value}" )
1414
displays+=( "$display" )
1515
done
16-
zstyle ":completion:${curcontext}:*" list-colors "${colors:1}:=(#b)(-- *)=0=2;37:=(#b)(--[A-Za-z0-9_-]#)( * -- *)=0==2;37"
16+
zstyle ":completion:${curcontext}:*" list-colors "${colors:1}:=(#b)(-- *)=0=2"
1717
_describe "" displays values -Q -S '' -o nosort
1818
}
1919

0 commit comments

Comments
 (0)