From 671fda58c0cf5c37232854fcc0b7f72c94287a89 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Tue, 8 May 2001 11:55:28 +0000 Subject: match `scalar*' not `scalar' when checking parameter type (14256) --- Completion/Zsh/Context/_subscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Completion') diff --git a/Completion/Zsh/Context/_subscript b/Completion/Zsh/Context/_subscript index bca521714..516c8cae9 100644 --- a/Completion/Zsh/Context/_subscript +++ b/Completion/Zsh/Context/_subscript @@ -20,7 +20,7 @@ elif compset -P '\('; then if [[ $PREFIX = (#b)*([bns])(?|)(*) ]]; then local f=$match[1] d=$match[2] e=$match[2] v=$match[3] - [[ $f = s && ${(Pt)${compstate[parameter]}} != scalar ]] && return 1 + [[ $f = s && ${(Pt)${compstate[parameter]}} != scalar* ]] && return 1 if [[ -z $d ]]; then _message 'delimiter' return -- cgit 1.4.1