mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-11-27 15:01:00 +01:00
54071: fix prompt colour completion
This commit is contained in:
parent
d8666da9de
commit
2a6e69d42d
2 changed files with 3 additions and 1 deletions
|
|
@ -1,5 +1,7 @@
|
|||
2025-11-12 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* 54071: Completion/Zsh/Type/_ps1234: fix prompt colour completion
|
||||
|
||||
* 54043, 54055 (tweaked to use "reset" as suggested by Mikael):
|
||||
Doc/Zsh/zle.yo, Src/prompt.c, Src/Modules/hlgroup.c,
|
||||
Src/Modules/watch.c, Src/Zle/complist.c, Src/Zle/zle.h,
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ if compset -P '%[FK]'; then
|
|||
grp="$expl[expl[(i)-J]+1]"
|
||||
compadd "$expl[@]" "$suf[@]" $pre {0..$cols}
|
||||
for c in {0..$cols}; do
|
||||
_comp_colors+=( "($grp)=${c}=${${${(%):-%F{$c\}}#?\[}%m}" )
|
||||
_comp_colors+=( "($grp)=${c}=${${${${(%):-%F{$c\}}#?\[}%m}//:/;}" )
|
||||
done
|
||||
else
|
||||
_message -e terminal-colors "number"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue