summaryrefslogtreecommitdiff
path: root/Completion/compinit
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/compinit')
-rw-r--r--Completion/compinit11
1 files changed, 6 insertions, 5 deletions
diff --git a/Completion/compinit b/Completion/compinit
index f9d2c574c..9470c92f6 100644
--- a/Completion/compinit
+++ b/Completion/compinit
@@ -105,17 +105,17 @@ done
# The associative arrays containing the definitions for the commands and
# services.
-typeset -gA _comps _services _patcomps _postpatcomps
+typeset -gHA _comps _services _patcomps _postpatcomps
# `_compautos' contains the names and options for autoloaded functions
# that get options.
-typeset -gA _compautos
+typeset -gHA _compautos
# The associative array use to report information about the last
# completion to the outside.
-typeset -gA _lastcomp
+typeset -gHA _lastcomp
# Remember dumpfile.
if [[ -n $_i_dumpfile ]]; then
@@ -127,12 +127,13 @@ fi
# The standard options set in completion functions.
-typeset -ga _comp_options
+typeset -gHa _comp_options
_comp_options=(
bareglobqual
extendedglob
glob
multibyte
+ multifuncdef
nullglob
rcexpandparam
unset
@@ -161,7 +162,7 @@ _comp_options=(
# have a valid stdin descriptor (zle closes it before calling widgets)
# and don't get confused by user's ZERR trap handlers.
-typeset -g _comp_setup='local -A _comp_caller_options;
+typeset -gH _comp_setup='local -A _comp_caller_options;
_comp_caller_options=(${(kv)options[@]});
setopt localoptions localtraps localpatterns ${_comp_options[@]};
local IFS=$'\'\ \\t\\r\\n\\0\''