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

[PATCH] Fix zstyle lookup with _php: use trailing colon



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