Fix error when sourcing twice the script

This commit is contained in:
Julien Nicoulaud 2011-01-06 14:57:51 +01:00
parent 7e963c6c7e
commit fc5caa4e2d
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ _zsh_highlight-zle-buffer() {
local clean_event local clean_event
for event in $(zle -la); do for event in $(zle -la); do
case $event in case $event in
_*|.run-help) _*|orig-*|.run-help)
;; ;;
accept-and-menu-complete) accept-and-menu-complete)
eval "$event() { builtin zle .$event && _zsh_highlight-zle-buffer } ; zle -N $event" eval "$event() { builtin zle .$event && _zsh_highlight-zle-buffer } ; zle -N $event"