1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-05-26 18:06:05 +02:00

Mikael: users/15653: zle_highlight=(none) turns off suffix highlighting

unposted: note suffix highlighting in NEWS
This commit is contained in:
Peter Stephenson 2010-12-17 14:01:23 +00:00
parent 246bcd10a7
commit a9421446d2
3 changed files with 13 additions and 2 deletions

View File

@ -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 $
*****************************************************

4
NEWS
View File

@ -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:

View File

@ -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)) {