diff options
author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2016-11-24 07:02:11 +0000 |
---|---|---|
committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2016-11-28 07:16:39 +0000 |
commit | 1955cceec79107b6571646b695d334df8e4a6cd8 (patch) | |
tree | 4acf7ec7315d5361561254e1d2088886342c2c47 /Completion/Base | |
parent | a81f280bfa185ba1df9c5ffee535631e4f1736f4 (diff) | |
download | zsh-1955cceec79107b6571646b695d334df8e4a6cd8.tar.gz zsh-1955cceec79107b6571646b695d334df8e4a6cd8.tar.xz zsh-1955cceec79107b6571646b695d334df8e4a6cd8.zip |
40011: Make $_comp_priv_prefix only declared when required, and use that to have chgrp offer all groups under doas, ssh, etc as well.
Diffstat (limited to 'Completion/Base')
-rw-r--r-- | Completion/Base/Core/_main_complete | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Completion/Base/Core/_main_complete b/Completion/Base/Core/_main_complete index c292ce7d7..aa2486236 100644 --- a/Completion/Base/Core/_main_complete +++ b/Completion/Base/Core/_main_complete @@ -38,7 +38,9 @@ local func funcs ret=1 tmp _compskip format nm call match min max i num\ _saved_colors="$ZLS_COLORS" \ _saved_colors_set=${+ZLS_COLORS} \ _ambiguous_color='' -local -a _comp_priv_prefix +# Hide any '_comp_priv_prefix' variable that happens to be defined in the calling scope. +local _comp_priv_prefix +unset _comp_priv_prefix # _precommand sets this to indicate we are following a precommand modifier local -a precommands |