summary refs log tree commit diff
diff options
context:
space:
mode:
authorDoug Kearns <dkearns@users.sourceforge.net>2005-07-25 10:55:50 +0000
committerDoug Kearns <dkearns@users.sourceforge.net>2005-07-25 10:55:50 +0000
commitc42ab7adb5afdd6f9f4c33a5cc9fa5ed1171f2d0 (patch)
treedf2e4fbe21a9258d51f376633325c353caf25a47
parente09dc3c0ed50466a0e2c3632e63b7b728024903a (diff)
downloadzsh-c42ab7adb5afdd6f9f4c33a5cc9fa5ed1171f2d0.tar.gz
zsh-c42ab7adb5afdd6f9f4c33a5cc9fa5ed1171f2d0.tar.xz
zsh-c42ab7adb5afdd6f9f4c33a5cc9fa5ed1171f2d0.zip
unposted: add missing compset -S call to _php
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_php5
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index d2366b9e8..d3321ebce 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-07-25  Doug Kearns  <djkea2@gus.gscit.monash.edu.au>
+
+	* unposted: Completion/Unix/Command/_php: add missing compset -S call
+	when completing directives
+
 2005-07-24  Wayne Davison  <wayned@users.sourceforge.net>
 
 	* unposted: Src/utils.c: improved the function comment for
diff --git a/Completion/Unix/Command/_php b/Completion/Unix/Command/_php
index bd210dccd..7688dd571 100644
--- a/Completion/Unix/Command/_php
+++ b/Completion/Unix/Command/_php
@@ -44,13 +44,14 @@ _arguments -C -s -S -A "-*" "$args[@]" && return 0
 
 case $state in
   directive)
-    local -a directives
+    local -a directives suf
     local code='foreach (ini_get_all() as $k => $v) { echo "$k\n"; }'
     directives=( $(_call_program directives $words[1] -r ${(q)code} 2>/dev/null) )
     if compset -P '*='; then
       _default && return 0
     else
-      _wanted directives expl 'configuration directive' compadd -qS= -a directives && return 0
+      compset -S '=*' || suf=( -qS '=' )
+      _wanted directives expl 'configuration directive' compadd "$suf[@]" -a directives && return 0
     fi
   ;;
   extension)