about summary refs log tree commit diff
path: root/Functions
diff options
context:
space:
mode:
Diffstat (limited to 'Functions')
-rw-r--r--Functions/Misc/zed2
1 files changed, 1 insertions, 1 deletions
diff --git a/Functions/Misc/zed b/Functions/Misc/zed
index b1aa8f4eb..9086a1c4c 100644
--- a/Functions/Misc/zed
+++ b/Functions/Misc/zed
@@ -74,7 +74,7 @@ if ((fun)) then
   var="$(functions $1)"
   # If function is undefined but autoloadable, load it
   if [[ $var = *\#\ undefined* ]] then
-      autoload +X $1
+      var="$(autoload +X $1; functions $1)"
   elif [[ -z $var ]] then
     var="$1() {
 }"