about summary refs log tree commit diff
path: root/Src/lex.c
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2019-12-26 03:54:17 +0100
committerMikael Magnusson <mikachu@gmail.com>2020-04-02 07:42:16 +0200
commit8923d2a61824b0856839d52f3bf52aedb86fd827 (patch)
tree7c600a7c3531df51c1e010b5cb2a5c8cfec6fc5c /Src/lex.c
parentc57d660764c368d6c1e0104f2b781c85e5a33f0b (diff)
downloadzsh-8923d2a61824b0856839d52f3bf52aedb86fd827.tar.gz
zsh-8923d2a61824b0856839d52f3bf52aedb86fd827.tar.xz
zsh-8923d2a61824b0856839d52f3bf52aedb86fd827.zip
Add SHORT_REPEAT option
Diffstat (limited to 'Src/lex.c')
-rw-r--r--Src/lex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/lex.c b/Src/lex.c
index 1d86da94e..a541defe6 100644
--- a/Src/lex.c
+++ b/Src/lex.c
@@ -270,7 +270,7 @@ zshlex(void)
     do {
 	if (inrepeat_)
 	    ++inrepeat_;
-	if (inrepeat_ == 3 && isset(SHORTLOOPS))
+	if (inrepeat_ == 3 && (isset(SHORTLOOPS) || isset(SHORTREPEAT)))
 	    incmdpos = 1;
 	tok = gettok();
     } while (tok != ENDINPUT && exalias());