From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4907 invoked by alias); 25 May 2015 15:02:30 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 35286 Received: (qmail 9997 invoked from network); 25 May 2015 15:02:23 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thequod.de; h= x-mailer:message-id:date:date:subject:subject:from:from:received :received:received; s=postfix2; t=1432565624; bh=dO2j1/IxtivY6Ps 8kZ253qzssZQUh5wi3PMFpihs3pg=; b=eZfOSjK+Ffu8IVEz8Z2VOTlbHNjDLZI 5bhJrjaM07P43BIeChiybTQwYXbbTFrSj0DG9DoRkVYqKqPLaZ+sCN7VHQYUs3PV 3z9yJYf4ohmcdVNmRe9JZ7VsecZHEBfQbta4lOllfkxCo9pBanp3TGAAreeAWw9e nx5nAPFDYuP0= From: Daniel Hahler To: zsh-workers@zsh.org Subject: [PATCH] Fix zstyle lookups with _baz and _tla Date: Mon, 25 May 2015 16:53:39 +0200 Message-Id: <1432565619-21621-1-git-send-email-genml+zsh-workers@thequod.de> X-Mailer: git-send-email 2.4.1.dirty From: Daniel Hahler --- Completion/Unix/Command/_baz | 4 ++-- Completion/Unix/Command/_tla | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Completion/Unix/Command/_baz b/Completion/Unix/Command/_baz index 132c6e3..6787f41 100644 --- a/Completion/Unix/Command/_baz +++ b/Completion/Unix/Command/_baz @@ -6,13 +6,13 @@ local baz_version local hide_short # ask the user which version of baz this is -if ! zstyle -s ":completion:${curcontext}" baz-version baz_version; then +if ! zstyle -s ":completion:${curcontext}:" baz-version baz_version; then # ask baz instead baz_version="${${$($BAZ --version)#baz Bazaar version }%% \(thelove@canonical.com*}" fi # test whether to hide short options from completion -if zstyle -s ":completion:${curcontext}" hide-shortopts hide_short; then +if zstyle -s ":completion:${curcontext}:" hide-shortopts hide_short; then case $hide_short in true|yes|on|1) hide_short='!' ;; *) hide_short='' ;; diff --git a/Completion/Unix/Command/_tla b/Completion/Unix/Command/_tla index 358a6a7..1e4cdd8 100644 --- a/Completion/Unix/Command/_tla +++ b/Completion/Unix/Command/_tla @@ -6,7 +6,7 @@ local tla_version local hide_short # ask the user which version of tla this is -if ! zstyle -s ":completion:${curcontext}" tla-version tla_version; then +if ! zstyle -s ":completion:${curcontext}:" tla-version tla_version; then # ask tla instead tla_version="$($TLA --version)" if [[ "${${(f)tla_version}[1]}" == The\ GNU\ Arch\ Revision\ Control\ System\ \(tla\)\ (#b)([0-9.]##) ]]; then @@ -18,7 +18,7 @@ if ! zstyle -s ":completion:${curcontext}" tla-version tla_version; then fi # test whether to hide short options from completion -if zstyle -s ":completion:${curcontext}" hide-shortopts hide_short; then +if zstyle -s ":completion:${curcontext}:" hide-shortopts hide_short; then case $hide_short in true|yes|on|1) hide_short='!' ;; *) hide_short='' ;; -- 2.4.1.dirty