about summary refs log tree commit diff
path: root/Functions/Misc/zed
diff options
context:
space:
mode:
Diffstat (limited to 'Functions/Misc/zed')
-rw-r--r--Functions/Misc/zed2
1 files changed, 1 insertions, 1 deletions
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