zsh-workers
 help / color / mirror / code / Atom feed
* [PATCH] completion,git: fix zstyle customization of subcommand list
@ 2009-12-06 21:25 Jörg Sommer
  0 siblings, 0 replies; only message in thread
From: Jörg Sommer @ 2009-12-06 21:25 UTC (permalink / raw)
  To: zsh-workers; +Cc: Jörg Sommer

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-12-07  0:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-06 21:25 [PATCH] completion,git: fix zstyle customization of subcommand list Jörg Sommer

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).