about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2003-12-18 10:49:52 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2003-12-18 10:49:52 +0000
commit4ad8d51ab9a5f30766707768c3e709710d58e4c2 (patch)
tree9dd3cff8fc6d60cdb7d795bd703e3fbff2c4a06f /Src
parentf93857ab6585d1042eb422e99eead7159666e269 (diff)
downloadzsh-4ad8d51ab9a5f30766707768c3e709710d58e4c2.tar.gz
zsh-4ad8d51ab9a5f30766707768c3e709710d58e4c2.tar.xz
zsh-4ad8d51ab9a5f30766707768c3e709710d58e4c2.zip
Apply 19308 (## on its own in arithmetic. zsh-4.0.8
4.0.8
Diffstat (limited to 'Src')
-rw-r--r--Src/utils.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Src/utils.c b/Src/utils.c
index fafdd99d9..1d7d2e163 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -3470,7 +3470,10 @@ getkeystring(char *s, int *len, int fromwhere, int *misc)
     }
     DPUTS(fromwhere == 4, "BUG: unterminated $' substitution");
     *t = '\0';
-    *len = t - buf;
+    if (fromwhere == 6)
+      *misc = 0;
+    else
+      *len = t - buf;
     return buf;
 }