From 437294af796f2c1530ef942f53c823ba0753556f Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Mon, 18 Oct 1999 09:46:07 +0000 Subject: zsh-workers/8313 --- Completion/Core/compinit | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Completion/Core/compinit') diff --git a/Completion/Core/compinit b/Completion/Core/compinit index 16148a945..ca9240f92 100644 --- a/Completion/Core/compinit +++ b/Completion/Core/compinit @@ -368,7 +368,7 @@ compconf() { # Utility function to call a function if it exists. # -# Usage: call [ ... ] +# Usage: funcall [ ... ] # # If a function named is defined (or defined to be autoloaded), # it is called. If is given not the string `-' or empty, it is @@ -385,10 +385,11 @@ funcall() { shift - if builtin functions "$1"; then + if builtin functions "$1" >& /dev/null; then "$@" _ret="$?" [[ -n "$_name" ]] && eval "${_name}=${_ret}" + compstate[restore]='' return 0 fi return 1 -- cgit 1.4.1