Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH] Completion/Unix/Command/_git: move "local" statement out of loop



From: Daniel Hahler <git@xxxxxxxxxx>

Fixup for 99cf61fd4.
---
 Completion/Unix/Command/_git | 4 ++--
 1 file 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
-- 
2.16.1



Messages sorted by: Reverse Date, Date, Thread, Author