diff options
author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2015-12-31 00:17:09 +0000 |
---|---|---|
committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2015-12-31 01:16:06 +0000 |
commit | fcd13cdaaee9a29e56a36afd1df3935602b96e7a (patch) | |
tree | 9f969a6fc257f623dc60025b8e05adbdb3c8d0f7 /Src/Zle/zle_refresh.c | |
parent | dab6e7c2319c0aadb39eb9cce677e0a35da8314d (diff) | |
download | zsh-fcd13cdaaee9a29e56a36afd1df3935602b96e7a.tar.gz zsh-fcd13cdaaee9a29e56a36afd1df3935602b96e7a.tar.xz zsh-fcd13cdaaee9a29e56a36afd1df3935602b96e7a.zip |
37456: Have zle_highlight=(none) disable paste highlighting
Before this change, zle_highlight=(paste:none) worked, but zle_highlight=(none) didn't.
Diffstat (limited to 'Src/Zle/zle_refresh.c')
-rw-r--r-- | Src/Zle/zle_refresh.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Src/Zle/zle_refresh.c b/Src/Zle/zle_refresh.c index 6facff429..3d2471e27 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); |