diff options
Diffstat (limited to 'Completion/compinit')
-rw-r--r-- | Completion/compinit | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Completion/compinit b/Completion/compinit index de19390a1..b577b6dc3 100644 --- a/Completion/compinit +++ b/Completion/compinit @@ -118,12 +118,11 @@ typeset -gA _compautos typeset -gA _lastcomp # Remember dumpfile. -typeset -g _comp_dumpfile if [[ -n $_i_dumpfile ]]; then # Explicitly supplied dumpfile. - _comp_dumpfile="$_i_dumpfile" + typeset -g _comp_dumpfile="$_i_dumpfile" else - _comp_dumpfile="${ZDOTDIR:-$HOME}/.zcompdump" + typeset -g comp_dumpfile="${ZDOTDIR:-$HOME}/.zcompdump" fi # The standard options set in completion functions. @@ -160,8 +159,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 -_comp_setup='setopt localoptions localtraps ${_comp_options[@]}; +typeset -g _comp_setup='setopt localoptions localtraps ${_comp_options[@]}; local IFS=$'\'\ \\t\\r\\n\\0\'' exec </dev/null; trap - ZERR |