From c42ab7adb5afdd6f9f4c33a5cc9fa5ed1171f2d0 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Mon, 25 Jul 2005 10:55:50 +0000 Subject: unposted: add missing compset -S call to _php --- Completion/Unix/Command/_php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Completion/Unix/Command/_php') 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) -- cgit 1.4.1