about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2010-12-17 14:01:23 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2010-12-17 14:01:23 +0000
commita9421446d26c7b67f238082fd8a643f398f556fd (patch)
tree201f1d725f52865eec014ad8a3c98bc09ac8dbad
parent246bcd10a7aeb54094ba02f032e682b759ee4b0b (diff)
downloadzsh-a9421446d26c7b67f238082fd8a643f398f556fd.tar.gz
zsh-a9421446d26c7b67f238082fd8a643f398f556fd.tar.xz
zsh-a9421446d26c7b67f238082fd8a643f398f556fd.zip
Mikael: users/15653: zle_highlight=(none) turns off suffix highlighting
unposted: note suffix highlighting in NEWS
-rw-r--r--ChangeLog9
-rw-r--r--NEWS4
-rw-r--r--Src/Zle/zle_refresh.c2
3 files changed, 13 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index b753aa08b..13e00cc9c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-12-17  Peter Stephenson  <pws@csr.com>
+
+	* unposted: NEWS: note zle_highlight suffix control.
+
+	* Mikael: users/15653: Src/Zle/zle_refresh.c:
+	zle_highlight=(none) should turn off suffix highlighting.
+
 2010-12-16  Peter Stephenson  <pws@csr.com>
 
 	* Mikael: 28531: Completion/Base/Utility/_combination,
@@ -13974,5 +13981,5 @@
 
 *****************************************************
 * This is used by the shell to define $ZSH_PATCHLEVEL
-* $Revision: 1.5155 $
+* $Revision: 1.5156 $
 *****************************************************
diff --git a/NEWS b/NEWS
index 073a8f2b1..c36a2480d 100644
--- a/NEWS
+++ b/NEWS
@@ -65,6 +65,10 @@ keyword in the zle_highlight array.  These can be distinguished from
 unprintable Unicode characters which also use "special" highlighting as the
 latter are always two or four bytes long, e.g. <XXXX>, <XXXXXXXX>.
 
+zle_highlight also control highlighting of a removable completion
+suffix, e.g. the "/" automatically appended to directories.  This uses
+the keyword "suffix".
+
 The line editor now sets the variable ZLE_LINE_ABORTED if there is
 an error when editing the line.  The following code can be used
 to create a bindable editor widget to restore the aborted line:
diff --git a/Src/Zle/zle_refresh.c b/Src/Zle/zle_refresh.c
index 137065513..2a1907c76 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)) {