Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: region_highlight cancels styles set in zle_highlight



On Sat, 5 Sep 2015 10:44:49 +0000
Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
> How do $zle_highlight and $region_highlight interact?  Which one takes
> precedence if a certain byte range is covered by both?

The special forms of highlight (the ones that apply to regions, so not,
for example, unprintable characters) are treated as the initial set of
entries in the array of highlights to apply, with any user-specified
ones in region_highlight following in order, with later values
overriding earlier ones.

pws



Messages sorted by: Reverse Date, Date, Thread, Author