Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] completion,git: fix zstyle customization of subcommand list
- X-seq: zsh-workers 27472
- From: JÃrg Sommer <joerg@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] completion,git: fix zstyle customization of subcommand list
- Date: Sun, 6 Dec 2009 22:25:52 +0100
- Cc: JÃrg Sommer <joerg@xxxxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=gnuu.de; s=banki; t=1260145257; i=@xxxxxxxxxxxx; bh=zlF3hPj+JVbPRrPEOJk4EkuhaV66+0H/2 tQErKAQV/8=; h=From:To:Cc:Subject:Date:Message-Id; b=o/3LEKuHLJQclZ eQ/UmwDlAqx0f7Q0fJwgQzMTTs7XJht0OUxvy7vyJXKoYAF/R2l3BaFp2WU0xFyIPs6 m48Yf3za/OkLTciyqaqkyq+hpM8cOK1bAWJ2HW8xpnNhR1BG6vPOv/4q0rcueRjNXut y5kipx08XK53XEjma8t6Cnc=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
The variable $curcontext has to be expanded for the zstyle call.
Otherwise the lookup would fail and the customization of the expansion of
the subcommand list doesn't work.
---
Completion/Unix/Command/_git | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 2550818..33cfc77 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -304,7 +304,7 @@ _git_commands () {
'upload-pack:command invoked by clone-pack and fetch-pack')
local wanted_commands
- zstyle -s ':completion:${curcontext}:' commands wanted_commands || wanted_commands="all -internal"
+ zstyle -s ":completion:${curcontext}:" commands wanted_commands || wanted_commands="all -internal"
local -aU unique_wanted_commands
unique_wanted_commands=($=wanted_commands)
--
1.6.5
Messages sorted by:
Reverse Date,
Date,
Thread,
Author