Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] Completion/Unix/Command/_git: move "local" statement out of loop
- X-seq: zsh-workers 42323
- From: Daniel Hahler <genml+zsh-workers@xxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] Completion/Unix/Command/_git: move "local" statement out of loop
- Date: Wed, 24 Jan 2018 21:42:31 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thequod.de; h= x-mailer:message-id:date:date:subject:subject:from:from:received :received:received; s=postfix2; t=1516826556; bh=LI9tMxsyRyTg/65 ITlVNWOwrjwf6TmKGr0MKCvpBFvM=; b=H2e/FXPnHL0PQSlOx0Ke/Yeb0adU9tm tjQ3w8z/Pljbaf/ybNnESQkNoD6QgFZkhEqkGClkhDsLwJuUT3+L+VdBPKxR9kvY Ouu2oJs1cZX8I8ptx45kDkKzKY2+8a9ELsnK7Yb4CM6caswTI4TqagEGG7yzQp19 ln3Sz6cdg2DQ=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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