diff options
author | Oliver Kiddle <opk@zsh.org> | 2024-03-05 00:11:02 +0100 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2024-03-05 00:11:02 +0100 |
commit | 05c7b21e2b30873d002b50b37e2fbd3803d4b608 (patch) | |
tree | 70dc55c5c22cb1c245ab4f7d241ce95ca6cc7957 /Src/Zle/complist.c | |
parent | 36a2d5cfa49a6b7d699269cb4f22d5f3d0255bc8 (diff) | |
download | zsh-05c7b21e2b30873d002b50b37e2fbd3803d4b608.tar.gz zsh-05c7b21e2b30873d002b50b37e2fbd3803d4b608.zip |
52646: extend support for highlight groups to completion explanation strings and WATCHFMT
Diffstat (limited to 'Src/Zle/complist.c')
-rw-r--r-- | Src/Zle/complist.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Src/Zle/complist.c b/Src/Zle/complist.c index 9cb89a60d..5619160a9 100644 --- a/Src/Zle/complist.c +++ b/Src/Zle/complist.c @@ -1181,6 +1181,13 @@ compprintfmt(char *fmt, int n, int dopr, int doesc, int ml, int *stop) if (dopr) tunsetattrs(TXTBGCOLOUR); break; + case ZWC('H'): + if (*p == '{') { + p = parsehighlight(p + 1, '}', &atr); + if (atr != TXT_ERROR && dopr) + treplaceattrs(atr); + } + break; case ZWC('{'): if (arg) cc += arg; |