summary refs log tree commit diff
diff options
context:
space:
mode:
-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)) {