about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2015-09-07 15:50:26 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2015-09-11 21:49:39 +0000
commitc76f4f96a65c7bfbba2183c422a1fb567069981f (patch)
treee8b1a1abdb5518fc52fc049ebc416df4b3cc2d08
parentd37b59fe0969a619f049dee081b15af696070009 (diff)
downloadzsh-c76f4f96a65c7bfbba2183c422a1fb567069981f.tar.gz
zsh-c76f4f96a65c7bfbba2183c422a1fb567069981f.tar.xz
zsh-c76f4f96a65c7bfbba2183c422a1fb567069981f.zip
36443: Set zle_highlight=(paste:standout) by default.
-rw-r--r--ChangeLog3
-rw-r--r--Doc/Zsh/zle.yo2
-rw-r--r--Src/Zle/zle_refresh.c3
3 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index a484ad7fc..aedeaed4c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2015-09-11  Daniel Shahaf  <d.s@daniel.shahaf.name>
 
+	* 36443: Doc/Zsh/zle.yo Src/Zle/zle_refresh.c: Set
+	zle_highlight=(paste:standout) by default.
+
 	* 36443: Revert 35834.
 
 2015-09-11  Peter Stephenson  <p.w.stephenson@ntlworld.com>
diff --git a/Doc/Zsh/zle.yo b/Doc/Zsh/zle.yo
index 2c539c460..71a7af0d7 100644
--- a/Doc/Zsh/zle.yo
+++ b/Doc/Zsh/zle.yo
@@ -2679,7 +2679,7 @@ If tt(zle_highlight) is not set or no value applies to a particular
 context, the defaults applied are equivalent to
 
 example(zle_highlight=LPAR()region:standout special:standout
-suffix:bold isearch:underline+RPAR())
+suffix:bold isearch:underline paste:standout+RPAR())
 
 i.e. both the region and special characters are shown in standout mode.
 
diff --git a/Src/Zle/zle_refresh.c b/Src/Zle/zle_refresh.c
index 0c28c0a2d..6facff429 100644
--- a/Src/Zle/zle_refresh.c
+++ b/Src/Zle/zle_refresh.c
@@ -372,7 +372,8 @@ zle_set_highlight(void)
 	region_highlights[1].atr = TXTUNDERLINE;
     if (!suffix_atr_on_set)
 	region_highlights[2].atr = TXTBOLDFACE;
-        /* paste defaults to 0 */
+    if (!paste_atr_on_set)
+	region_highlights[3].atr = TXTSTANDOUT;
 
     allocate_colour_buffer();
 }