about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2001-05-08 11:55:28 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2001-05-08 11:55:28 +0000
commit671fda58c0cf5c37232854fcc0b7f72c94287a89 (patch)
treefc5b145cc5af37847db919888d7a3487b1b286e4
parent4c81ef8686e9cfe761269fd6508a74f1dda1b939 (diff)
downloadzsh-671fda58c0cf5c37232854fcc0b7f72c94287a89.tar.gz
zsh-671fda58c0cf5c37232854fcc0b7f72c94287a89.tar.xz
zsh-671fda58c0cf5c37232854fcc0b7f72c94287a89.zip
match `scalar*' not `scalar' when checking parameter type (14256)
-rw-r--r--ChangeLog4
-rw-r--r--Completion/Zsh/Context/_subscript2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 094f5c147..289b283aa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2001-05-08  Oliver Kiddle  <opk@zsh.org>
+
+	* 14256: Completion/Zsh/Context/_subscript: fix minor mistake
+
 	* 14255: Completion/X/Command/_vnc: fix guard for display numbers
 
 2001-05-08  Peter Stephenson  <pws@csr.com>
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