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

[PATCH] completion: _git-config: remove extraneous "local expl"



From: Daniel Hahler <git@xxxxxxxxxx>

It is defined at the beginning of the function already, and results in
the output of `expl=''` when completing after `git config
branch.local.pushremote ` etc.
---
 Completion/Unix/Command/_git | 1 -
 1 file changed, 1 deletion(-)

diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index a44de40..26f108f 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -2923,7 +2923,6 @@ _git-config () {
         (*)
           # TODO: Do we need to set up a _requested/_next_label?
           declare -a action
-          local expl
           _description values expl "$parts[2]"
           eval "action=($parts[4])"
           "$action[1]" "$expl[@]" "${(@)action[2,-1]}" && ret=0
-- 
2.4.3.dirty



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