From 2870302afa9baf4d1696541f8a1c95f55a6d3b30 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Wed, 24 Jan 2018 21:41:11 +0100 Subject: 42323: _git: move "local" statement out of loop Fixup for 99cf61fd4. --- Completion/Unix/Command/_git | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Completion/Unix/Command/_git') 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 -- cgit v1.2.3