From fc5caa4e2d688e65ce33aba26c69e46e319cc911 Mon Sep 17 00:00:00 2001 From: Julien Nicoulaud Date: Thu, 6 Jan 2011 14:57:51 +0100 Subject: [PATCH] Fix error when sourcing twice the script --- zsh-syntax-highlighting.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh-syntax-highlighting.zsh b/zsh-syntax-highlighting.zsh index 6e27169..06b569b 100644 --- a/zsh-syntax-highlighting.zsh +++ b/zsh-syntax-highlighting.zsh @@ -217,7 +217,7 @@ _zsh_highlight-zle-buffer() { local clean_event for event in $(zle -la); do case $event in - _*|.run-help) + _*|orig-*|.run-help) ;; accept-and-menu-complete) eval "$event() { builtin zle .$event && _zsh_highlight-zle-buffer } ; zle -N $event"