Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] Have zle_highlight=(none) disable paste highlighting
- X-seq: zsh-workers 37456
 
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
 
- To: zsh-workers@xxxxxxx
 
- Subject: [PATCH] Have zle_highlight=(none) disable paste highlighting
 
- Date: Thu, 31 Dec 2015 00:17:09 +0000
 
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=	daniel.shahaf.name; h=content-type:date:from:message-id	:mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=qnP	YmqXGkB1myh9seCDaI3A2k3M=; b=oHvSAPn9KAH3XAbjAzytHQ94MmzbeRIloUt	EWt60ERYeNuNTLhAVg1+y850PRKm2IknMy6fy+KMBc15+BqGboHgPActpiEEuqZ1	oSCFZOV+WBjDM/bgLAtvo5LuDs1biKJ+zmTEjbq+m+o3n5pE9AZUPqVmdy1vwuo+	0ygxjwGU=
 
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=	messagingengine.com; h=content-type:date:from:message-id	:mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=qn	PYmqXGkB1myh9seCDaI3A2k3M=; b=h8Br7RRIVw3cUXMR53bBm1Z3bbMB1VZaPf	QipU6l4dSJRaHKRgoKLny1CIDufG64O0alJSdR2O6mYXf6d+zzD2whr1lCgCLUm9	XJETJRHZsDb4GIMkWIOHhIyFqxiHKl36kQvklQ4GIWEgc37ddQDxpUr6w7dxaZff	9aameOy0s=
 
- List-help: <mailto:zsh-workers-help@zsh.org>
 
- List-id: Zsh Workers List <zsh-workers.zsh.org>
 
- List-post: <mailto:zsh-workers@zsh.org>
 
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
 
Before this change, zle_highlight=(paste:none) worked,
but zle_highlight=(none) didn't.
---
Thanks to Mikael for bringing this up.
diff --git a/Src/Zle/zle_refresh.c b/Src/Zle/zle_refresh.c
index 6facff4..3d2471e 100644
--- a/Src/Zle/zle_refresh.c
+++ b/Src/Zle/zle_refresh.c
@@ -338,9 +338,9 @@ zle_set_highlight(void)
 	for (; *atrs; atrs++) {
 	    if (!strcmp(*atrs, "none")) {
 		/* reset attributes for consistency... usually unnecessary */
-		special_atr_on = default_atr_on =
-		    paste_atr_on_set = 0;
-		special_atr_on_set = region_atr_on_set =
+		special_atr_on = default_atr_on = 0;
+		special_atr_on_set = 1;
+		paste_atr_on_set = region_atr_on_set =
 		    isearch_atr_on_set = suffix_atr_on_set = 1;
 	    } else if (strpfx("default:", *atrs)) {
 		match_highlight(*atrs + 8, &default_atr_on);
Messages sorted by:
Reverse Date,
Date,
Thread,
Author