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.
|
||||||
|
_zsh_highlight-install() {
|
||||||
local clean_event
|
local clean_event
|
||||||
for event in $(zle -la); do
|
for event in "$@"; do
|
||||||
case $event in
|
case $event in
|
||||||
_*|orig-*|.run-help|.which-command)
|
_*|orig-*|.run-help|.which-command)
|
||||||
;;
|
;;
|
||||||
@ -233,3 +234,5 @@ for event in $(zle -la); do
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
}
|
||||||
|
_zsh_highlight-install "${(@f)"$(zle -la)"}"
|
||||||
|
Loading…
Reference in New Issue
Block a user