Make this clause function and call it afterward.
Signed-off-by: Takeshi Banse <takebi@laafc.net>
This commit is contained in:
		
							parent
							
								
									f962bdf1e7
								
							
						
					
					
						commit
						802583ea94
					
				|  | @ -214,8 +214,9 @@ _zsh_highlight-zle-buffer() { | ||||||
| # reason).  You can see the default setup using "zle -l -L". | # reason).  You can see the default setup using "zle -l -L". | ||||||
| 
 | 
 | ||||||
| # Bind all ZLE events from zle -la to highlighting function. | # Bind all ZLE events from zle -la to highlighting function. | ||||||
| local clean_event | _zsh_highlight-install() { | ||||||
| for event in $(zle -la); do |   local clean_event | ||||||
|  |   for event in "$@"; do | ||||||
|     case $event in |     case $event in | ||||||
|       _*|orig-*|.run-help|.which-command) |       _*|orig-*|.run-help|.which-command) | ||||||
|         ;; |         ;; | ||||||
|  | @ -232,4 +233,6 @@ for event in $(zle -la); do | ||||||
|       *) |       *) | ||||||
|         ;; |         ;; | ||||||
|     esac |     esac | ||||||
| done |   done | ||||||
|  | } | ||||||
|  | _zsh_highlight-install "${(@f)"$(zle -la)"}" | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue