mirror of
				https://github.com/zsh-users/zsh-syntax-highlighting.git
				synced 2025-10-30 15:56:28 +08:00 
			
		
		
		
	play well with zsh-autosuggest
This commit is contained in:
		
							parent
							
								
									d4f8edc9f3
								
							
						
					
					
						commit
						27b60ee433
					
				| @ -223,6 +223,12 @@ _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|set-local-history|yank)}; do |   for cur_widget in ${${(f)"$(builtin zle -la)"}:#(.*|orig-*|run-help|which-command|beep|set-local-history|yank)}; do | ||||||
|  | 
 | ||||||
|  |     # Most probably that widgets are already bound, but got rebount by another plugin like autosuggest. | ||||||
|  |     if type _zsh_highlight_widget_$cur_widget 2>&1 >/dev/null; then | ||||||
|  |       continue; | ||||||
|  |     fi | ||||||
|  | 
 | ||||||
|     case $widgets[$cur_widget] in |     case $widgets[$cur_widget] in | ||||||
| 
 | 
 | ||||||
|       # Already rebound event: do nothing. |       # Already rebound event: do nothing. | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Stanislav Seletskiy
						Stanislav Seletskiy