Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] Fix zstyle lookup with _php: use trailing colon
- X-seq: zsh-workers 35287
- From: Daniel Hahler <genml+zsh-workers@xxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] Fix zstyle lookup with _php: use trailing colon
- Date: Mon, 25 May 2015 17:21:19 +0200
- 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=1432567281; bh=Q7oUx0cx/cDeFMt 5utguknGFoc7EKVNLgl7BTsq/0Nw=; b=ribyRAFsavAVDY3OLzDI3noq2wbKrbY vbgmG6fSqn7nPB6bLKvTVqcXNqqjcnObcH4wfKWNYhN1jOqaTF27H1hACnaJftEk 1R9LObFnzOHdrUCD5mr03oX+Fy7vv1NqTbbrppZcgs/bM3oyEAWVHSR/6BGaoXlW 2W1WPcVmFdNM=
- 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
From: Daniel Hahler <git@xxxxxxxxxx>
---
Completion/Unix/Command/_php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Completion/Unix/Command/_php b/Completion/Unix/Command/_php
index 5d7b84e..2495898 100644
--- a/Completion/Unix/Command/_php
+++ b/Completion/Unix/Command/_php
@@ -3,13 +3,13 @@
# PHP 5.0.4 (cli)
# PHP 4.3.11 (cli)
-local curcontext="$curcontext" line state expl
+local line state expl
typeset -A opt_args
local -a args
local exclusions php_suffix
-zstyle -s ":completion:$curcontext" suffixes php_suffix '|' || php_suffix='php|phar'
+zstyle -s ":completion:${curcontext}:" suffixes php_suffix '|' || php_suffix='php|phar'
local php_files=":PHP file:_files -g '*.($php_suffix)(-.)'"
if _pick_variant php5=PHP\ 5 php4 --version; then
--
2.4.1.dirty
Messages sorted by:
Reverse Date,
Date,
Thread,
Author