From 8ffa3c17cf113340bce4133222edfa3d4a138d2d Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Thu, 27 Jul 2000 08:14:54 +0000 Subject: Detect autoloadable functions properly in zed. --- Functions/Misc/zed | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Functions') diff --git a/Functions/Misc/zed b/Functions/Misc/zed index dbf680270..68cb33fbe 100644 --- a/Functions/Misc/zed +++ b/Functions/Misc/zed @@ -41,7 +41,7 @@ bindkey -a "ZZ" accept-line if ((fun)) then var="$(functions $1)" # If function is undefined but autoloadable, load it - if [[ $var = undefined* ]] then + if [[ $var = *\#\ undefined* ]] then local dir for dir in $fpath; do if [[ -f $dir/$1 ]] then -- cgit 1.4.1