aboutsummaryrefslogtreecommitdiff
path: root/Completion/Core/compinit
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Core/compinit')
-rw-r--r--Completion/Core/compinit4
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Core/compinit b/Completion/Core/compinit
index af2467bec..23bc94cf9 100644
--- a/Completion/Core/compinit
+++ b/Completion/Core/compinit
@@ -194,7 +194,7 @@ compdef() {
# and probably do autoloading.
func="$1"
- [[ -n "$autol" ]] && autoload "$func"
+ [[ -n "$autol" ]] && autoload -U "$func"
shift
case "$type" in
@@ -363,7 +363,7 @@ if [[ -z "$_i_done" ]]; then
fi
;;
(\#autoload)
- autoload ${_i_file:t}
+ autoload -U ${_i_file:t}
;;
esac
done