diff options
author | Oliver Kiddle <okiddle@yahoo.co.uk> | 2020-06-11 22:31:44 +0200 |
---|---|---|
committer | Oliver Kiddle <okiddle@yahoo.co.uk> | 2020-06-11 22:31:44 +0200 |
commit | cce88bdb0c13e7533f85e4fc9e9c2530994eb0f0 (patch) | |
tree | 7771a06850b3420f27d4167b5c795bc9ed124725 /Completion/Unix/Type/_files | |
parent | c5f12fb732cc9ee9f151dd3357cf5f3f4bb55a48 (diff) | |
download | zsh-cce88bdb0c13e7533f85e4fc9e9c2530994eb0f0.tar.gz zsh-cce88bdb0c13e7533f85e4fc9e9c2530994eb0f0.tar.xz zsh-cce88bdb0c13e7533f85e4fc9e9c2530994eb0f0.zip |
users/24892: fix local declaration with recursive-files style and complete it for zstyle
Diffstat (limited to 'Completion/Unix/Type/_files')
-rw-r--r-- | Completion/Unix/Type/_files | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Unix/Type/_files b/Completion/Unix/Type/_files index 6adaa8154..4ddec1e12 100644 --- a/Completion/Unix/Type/_files +++ b/Completion/Unix/Type/_files @@ -1,6 +1,7 @@ #compdef -redirect-,-default-,-default- local -a match mbegin mend +local -a subtree local ret=1 # Look for glob qualifiers. This is duplicated from _path_files because @@ -110,7 +111,6 @@ for def in "$pats[@]"; do if _path_files -g "$pat" "$opts[@]" "$expl[@]"; then ret=0 elif [[ $PREFIX$SUFFIX != */* ]] && zstyle -a ":completion:${curcontext}:$tag" recursive-files rfiles; then - local subtree for rfile in $rfiles; do if [[ $PWD/ = ${~rfile} ]]; then if [[ -z $subtree ]]; then |