about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2015-12-31 00:17:09 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2015-12-31 01:16:06 +0000
commitfcd13cdaaee9a29e56a36afd1df3935602b96e7a (patch)
tree9f969a6fc257f623dc60025b8e05adbdb3c8d0f7
parentdab6e7c2319c0aadb39eb9cce677e0a35da8314d (diff)
downloadzsh-fcd13cdaaee9a29e56a36afd1df3935602b96e7a.tar.gz
zsh-fcd13cdaaee9a29e56a36afd1df3935602b96e7a.tar.xz
zsh-fcd13cdaaee9a29e56a36afd1df3935602b96e7a.zip
37456: Have zle_highlight=(none) disable paste highlighting
Before this change, zle_highlight=(paste:none) worked,
but zle_highlight=(none) didn't.
-rw-r--r--ChangeLog5
-rw-r--r--Src/Zle/zle_refresh.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index ef80f96fc..e219643d3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-12-31  Daniel Shahaf  <d.s@daniel.shahaf.name>
+
+	* 37456: Src/Zle/zle_refresh.c: Have zle_highlight=(none)
+	disable paste highlighting
+
 2015-12-30  Frank Terbeck  <ft@bewatermyfriend.org>
 
 	* 37451: Functions/VCS_Info/vcs_info: vcs_info: Declare "msgs" in
diff --git a/Src/Zle/zle_refresh.c b/Src/Zle/zle_refresh.c
index 6facff429..3d2471e27 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);