Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] zle_highlight: Mark suffix: as set when parsing "none"
- X-seq: zsh-users 15653
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Simon Ruderich <simon@xxxxxxxxxxxx>
- Subject: [PATCH] zle_highlight: Mark suffix: as set when parsing "none"
- Date: Fri, 17 Dec 2010 14:22:09 +0100
- Cc: Zsh users list <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding; bh=ew9vWISmfaWnJEBssSkL49MmxKBICdODVt/o3436oHw=; b=ewSUdfIsdVh3F/YpDIgVtI1Zls+Hg7iOtu9i2i4rDdnpWieg7xQ/VAk5EAjjSHrwnG 5aZaKmJtZv0FHWn/HrQnuL7rqjHMoB1Rhhmrcxx3U1RezcGimOMK7eORpzxPDuiEEBXY Q9GeAbcFKkEpIZPwIO7urCJuqMBx7Y6YFnxYQ=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=pJ98ODcCVje0SFf5VBJ7f0VSBZVu0hq0X+5ssGhzJoN5BCeEg2ZzgkaSJQAKJWE6pf YSfqZ2yXVK5AZ31csdfVP/ycSH7WeXPMwMg7nX1Z7B0xPc4Dzf5Q00EnMioHss42iZO8 Vpn9/IUe29ZoqXlzwVAL668fvkx1x8P3IVFMk=
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
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