1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 13:33:52 +01:00

unposted: add missing compset -S call to _php

This commit is contained in:
Doug Kearns 2005-07-25 10:55:50 +00:00
parent e09dc3c0ed
commit c42ab7adb5
2 changed files with 8 additions and 2 deletions

@ -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> 2005-07-24 Wayne Davison <wayned@users.sourceforge.net>
* unposted: Src/utils.c: improved the function comment for * unposted: Src/utils.c: improved the function comment for

@ -44,13 +44,14 @@ _arguments -C -s -S -A "-*" "$args[@]" && return 0
case $state in case $state in
directive) directive)
local -a directives local -a directives suf
local code='foreach (ini_get_all() as $k => $v) { echo "$k\n"; }' local code='foreach (ini_get_all() as $k => $v) { echo "$k\n"; }'
directives=( $(_call_program directives $words[1] -r ${(q)code} 2>/dev/null) ) directives=( $(_call_program directives $words[1] -r ${(q)code} 2>/dev/null) )
if compset -P '*='; then if compset -P '*='; then
_default && return 0 _default && return 0
else 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 fi
;; ;;
extension) extension)