summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2018-01-24 21:41:11 +0100
committerDaniel Hahler <git@thequod.de>2018-01-24 21:55:27 +0100
commit2870302afa9baf4d1696541f8a1c95f55a6d3b30 (patch)
tree429435ab24bde6c7a7b61e74f5e4892e0edccd6b
parent758966502caa6f91abcbaaebf2610609250de1fb (diff)
downloadzsh-2870302afa9baf4d1696541f8a1c95f55a6d3b30.tar.gz
zsh-2870302afa9baf4d1696541f8a1c95f55a6d3b30.tar.xz
zsh-2870302afa9baf4d1696541f8a1c95f55a6d3b30.zip
42323: _git: move "local" statement out of loop
Fixup for 99cf61fd4.
-rw-r--r--Completion/Unix/Command/_git4
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 30ca80835..80504c003 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -7760,14 +7760,14 @@ _git() {
 declare -gUa _git_third_party_commands
 _git_third_party_commands=()
 
-local file
+local file input
 for file in ${^fpath}/_git-*~(*~|*.zwc)(-.N); do
   local name=${${file:t}#_git-}
   if (( $+_git_third_party_commands[$name] )); then
     continue
   fi
 
-  local desc= input
+  local desc=
   integer i=1
   while read input; do
     if (( i == 2 )); then