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 35293
- 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 21:10:37 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thequod.de; h= references:in-reply-to:x-mailer:message-id:date:date:subject :subject:from:from:received:received:received; s=postfix2; t= 1432581042; bh=QQM9uJkUuI2LEDNOoUESvEjJT8ParKWNvCXs9GKzoXE=; b=U /nYgdDrD6vu2pyk23YMJg5TtaL0uPx/EIqLZa2CBbL1uHEOMyDA+teH/3i5EV1tn P8q59D3n6tVm7999DjWoPCpGynlw1/hxXcSWyaXE1/yPz3KIquxlOBKtrtY6w3AF BzBdtiaZBuQqLaoImPI5bwRkGrBYJ3zvEBAQx0cQug=
- In-reply-to: <1432567279-1783-1-git-send-email-genml+zsh-workers@thequod.de>
- 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
- References: <1432567279-1783-1-git-send-email-genml+zsh-workers@thequod.de>
From: Daniel Hahler <git@xxxxxxxxxx>
This replaces the previous patch from 35287.
Thanks to Daniel Shahaf for notifying me about the "local curcontext" being
required, because of "_arguments -C".
---
Completion/Unix/Command/_php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Completion/Unix/Command/_php b/Completion/Unix/Command/_php
index 5d7b84e..4edcd1e 100644
--- a/Completion/Unix/Command/_php
+++ b/Completion/Unix/Command/_php
@@ -9,7 +9,7 @@ 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