diff options
author | Oliver Kiddle <opk@zsh.org> | 2017-04-26 16:32:10 +0200 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2017-04-26 16:32:10 +0200 |
commit | 78afb218b0b2603db227667b616578bfe927518c (patch) | |
tree | 40277c76f6c347e144180b587a3e35c9fa0cbb5c /Completion/Zsh | |
parent | 408b92b168078a338f5fc2c2f95f39f8aa8e5f67 (diff) | |
download | zsh-78afb218b0b2603db227667b616578bfe927518c.tar.gz zsh-78afb218b0b2603db227667b616578bfe927518c.tar.xz zsh-78afb218b0b2603db227667b616578bfe927518c.zip |
40965: fix for missing local declarations of expl
Diffstat (limited to 'Completion/Zsh')
-rw-r--r-- | Completion/Zsh/Command/_fc | 2 | ||||
-rw-r--r-- | Completion/Zsh/Context/_value | 1 | ||||
-rw-r--r-- | Completion/Zsh/Function/_add-zle-hook-widget | 1 | ||||
-rw-r--r-- | Completion/Zsh/Function/_add-zsh-hook | 1 |
4 files changed, 4 insertions, 1 deletions
diff --git a/Completion/Zsh/Command/_fc b/Completion/Zsh/Command/_fc index 6cc01f32d..dd014e7d7 100644 --- a/Completion/Zsh/Command/_fc +++ b/Completion/Zsh/Command/_fc @@ -1,6 +1,6 @@ #compdef fc history r -local curcontext="$curcontext" state state_descr line ret=1 +local curcontext="$curcontext" state state_descr line expl ret=1 local num cmd sep local -a events typeset -A opt_args diff --git a/Completion/Zsh/Context/_value b/Completion/Zsh/Context/_value index 47fbc1749..22372ab36 100644 --- a/Completion/Zsh/Context/_value +++ b/Completion/Zsh/Context/_value @@ -24,6 +24,7 @@ else if [[ "$compstate[parameter]" != *-* && "$compstate[context]" = *value && "${(Pt)${compstate[parameter]}}" = assoc* ]]; then + local expl if (( CURRENT & 1 )); then _wanted association-keys expl 'association key' \ compadd -k "$compstate[parameter]" diff --git a/Completion/Zsh/Function/_add-zle-hook-widget b/Completion/Zsh/Function/_add-zle-hook-widget index 93954a2bb..f108d1868 100644 --- a/Completion/Zsh/Function/_add-zle-hook-widget +++ b/Completion/Zsh/Function/_add-zle-hook-widget @@ -11,6 +11,7 @@ _add-zle-hook-widget_types() { } _add-zle-hook-widget_widgets() { + local expl if (( $+opt_args[-d] )); then local -a tmp zstyle -g tmp $line[1] widgets diff --git a/Completion/Zsh/Function/_add-zsh-hook b/Completion/Zsh/Function/_add-zsh-hook index fb5403a60..e8ae97052 100644 --- a/Completion/Zsh/Function/_add-zsh-hook +++ b/Completion/Zsh/Function/_add-zsh-hook @@ -1,6 +1,7 @@ #compdef add-zsh-hook _add-zsh-hook_hooks() { + local expl if (( $+opt_args[-d] )); then _wanted functions expl "installed hooks" compadd -a - "$line[1]_functions" && return 0 else |