Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[BUG] zle_highlight fails to highlight suffix added with compadd -R
- X-seq: zsh-workers 49384
- From: Marlon Richert <marlon.richert@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: [BUG] zle_highlight fails to highlight suffix added with compadd -R
- Date: Tue, 7 Sep 2021 13:05:37 +0300
- Archived-at: <https://zsh.org/workers/49384>
- List-id: <zsh-workers.zsh.org>
The following completion functions give different highlighting results
in the zle:
_tst() { compadd -S '<SUFFIX>' -q -- '' }
_tst() { compadd -S '<SUFFIX>' -r '' -- '' }
_tst() { compadd -S '<SUFFIX>' -R '' -- '' }
With the first two functions, <SUFFIX> correctly gets highlighted as
autoremovable. However, with the third function, <SUFFIX> does not get
highlighted, even though it is autoremovable.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author