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

[PATCH] zle_highlight: Mark suffix: as set when parsing "none"



On 17 December 2010 14:03, Simon Ruderich <simon@xxxxxxxxxxxx> wrote:
> On Thu, Dec 16, 2010 at 11:58:36AM +0000, Peter Stephenson wrote:
>> [snip]
>>
>> If this seems not to be broken I'll turn it into 4.3.11, either early
>> next week or early in the new year if there turns out to be more to do.
>
> Thanks to Mikachu in #zsh I got a solution to disable it:
>
> Â Âzle_highlight=(suffix:none)
>
> The man page gives the following solution to disable the
> highlighting:
>
> Â Âzle_highlight=(none)
>
> But this doesn't work and the bold / is still displayed.

Here's a patch to fix the bug, with no opinion on if it should be a
default or not.

http://mika.l3ib.org/patches/zsh-highlight-none.patch

---
 Src/Zle/zle_refresh.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Src/Zle/zle_refresh.c b/Src/Zle/zle_refresh.c
index a194720..dc60212 100644
--- a/Src/Zle/zle_refresh.c
+++ b/Src/Zle/zle_refresh.c
@@ -363,7 +363,7 @@ zle_set_highlight(void)
 		/* reset attributes for consistency... usually unnecessary */
 		special_atr_on = default_atr_on = 0;
 		special_atr_on_set = region_atr_on_set =
-		    isearch_atr_on_set = 1;
+		    isearch_atr_on_set = suffix_atr_on_set = 1;
 	    } else if (strpfx("default:", *atrs)) {
 		match_highlight(*atrs + 8, &default_atr_on);
 	    } else if (strpfx("special:", *atrs)) {
-- 
1.7.3



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