From: "Jörg Sommer" <joerg@alea.gnuu.de>
To: zsh-workers@zsh.org
Cc: "Jörg Sommer" <joerg@alea.gnuu.de>
Subject: [PATCH] completion,git: fix zstyle customization of subcommand list
Date: Sun, 6 Dec 2009 22:25:52 +0100 [thread overview]
Message-ID: <df1a89e8121b17198642561214b6ac263d8acf2b.1260134626.git.joerg@alea.gnuu.de> (raw)
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
reply other threads:[~2009-12-07 0:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=df1a89e8121b17198642561214b6ac263d8acf2b.1260134626.git.joerg@alea.gnuu.de \
--to=joerg@alea.gnuu.de \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).