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". | ||||
| 
 | ||||
| # Bind all ZLE events from zle -la to highlighting function. | ||||
| local clean_event | ||||
| for event in $(zle -la); do | ||||
| _zsh_highlight-install() { | ||||
|   local clean_event | ||||
|   for event in "$@"; do | ||||
|     case $event in | ||||
|       _*|orig-*|.run-help|.which-command) | ||||
|         ;; | ||||
|  | @ -232,4 +233,6 @@ for event in $(zle -la); do | |||
|       *) | ||||
|         ;; | ||||
|     esac | ||||
| done | ||||
|   done | ||||
| } | ||||
| _zsh_highlight-install "${(@f)"$(zle -la)"}" | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue