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

[PATCH] completion,git: fix zstyle customization of subcommand list



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