Excluded several widgets from overriding following http://www.zsh.org/mla/users/2014/msg00308.html advise to resolve issue #137

This commit is contained in:
jimmijj 2014-09-30 00:45:29 +00:00
parent df2041e2d6
commit bd2e00a4a9

View File

@ -104,7 +104,7 @@ _zsh_highlight()
# API/utility functions for highlighters # API/utility functions for highlighters
# ------------------------------------------------------------------------------------------------- # -------------------------------------------------------------------------------------------------
# Array used by highlighters to declare user overridable styles. # Arrays used by highlighters to declare user overridable styles.
typeset -gA ZSH_HIGHLIGHT_STYLES typeset -gA ZSH_HIGHLIGHT_STYLES
typeset -gA ZSH_HIGHLIGHT_FILES typeset -gA ZSH_HIGHLIGHT_FILES
@ -140,7 +140,7 @@ _zsh_highlight_bind_widgets()
# Override ZLE widgets to make them invoke _zsh_highlight. # Override ZLE widgets to make them invoke _zsh_highlight.
local cur_widget local cur_widget
for cur_widget in ${${(f)"$(builtin zle -la)"}:#(.*|_*|orig-*|run-help|which-command|beep|yank*)}; do for cur_widget in ${${(f)"$(builtin zle -la)"}:#(.*|_*|orig-*|run-help|which-command|beep|yank*|auto-*|*-argument|argument-base|reset-prompt|split-undo|describe-key-briefly|what-cursor-position|set-local-history)}; do
case $widgets[$cur_widget] in case $widgets[$cur_widget] in
# Already rebound event: do nothing. # Already rebound event: do nothing.