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

[PATCH] Have zle_highlight=(none) disable paste highlighting



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