about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorPeter Stephenson <p.w.stephenson@ntlworld.com>2020-03-26 20:54:37 +0000
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2020-03-26 20:54:37 +0000
commit2a9674862ecaf9b7b1b66178782d47e8445df325 (patch)
tree69b2003060115d100225ed5b93e772c78e5d8dfa /Src
parentfc286a7c11aa767cab203f1fe111133eac9056fa (diff)
downloadzsh-2a9674862ecaf9b7b1b66178782d47e8445df325.tar.gz
zsh-2a9674862ecaf9b7b1b66178782d47e8445df325.tar.xz
zsh-2a9674862ecaf9b7b1b66178782d47e8445df325.zip
45616: Remove token from count argument to repeat
Diffstat (limited to 'Src')
-rw-r--r--Src/loop.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Src/loop.c b/Src/loop.c
index 95ef48b33..f13c8c4a9 100644
--- a/Src/loop.c
+++ b/Src/loop.c
@@ -499,8 +499,10 @@ execrepeat(Estate state, UNUSED(int do_exec))
 
     lastval = 0;
     tmp = ecgetstr(state, EC_DUPTOK, &htok);
-    if (htok)
+    if (htok) {
 	singsub(&tmp);
+	untokenize(tmp);
+    }
     count = mathevali(tmp);
     if (errflag)
 	return 1;