widget binding: Remove some too-wide exclusions
* m0vie/p_bindings: widget binding: don't exlude widgets with identical function name widget binding: don't exclude widgets starting with '_'
This commit is contained in:
		
						commit
						18df692ae6
					
				|  | @ -200,11 +200,11 @@ _zsh_highlight_bind_widgets() | |||
| 
 | ||||
|   # Override ZLE widgets to make them invoke _zsh_highlight. | ||||
|   local cur_widget | ||||
|   for cur_widget in ${${(f)"$(builtin zle -la)"}:#(.*|_*|orig-*|run-help|which-command|beep|set-local-history|yank)}; do | ||||
|   for cur_widget in ${${(f)"$(builtin zle -la)"}:#(.*|orig-*|run-help|which-command|beep|set-local-history|yank)}; do | ||||
|     case $widgets[$cur_widget] in | ||||
| 
 | ||||
|       # Already rebound event: do nothing. | ||||
|       user:$cur_widget|user:_zsh_highlight_widget_*);; | ||||
|       user:_zsh_highlight_widget_*);; | ||||
| 
 | ||||
|       # User defined widget: override and rebind old one with prefix "orig-". | ||||
|       user:*) eval "zle -N orig-$cur_widget ${widgets[$cur_widget]#*:}; \ | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue