summaryrefslogtreecommitdiffstats
path: root/src/indent.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-06-12 21:11:03 +0100
committerBram Moolenaar <Bram@vim.org>2022-06-12 21:11:03 +0100
commita7ac4c9c395d64059437e37045fa0ad5f9fecb0b (patch)
tree31b8184c1ebfa4b0038e11946b424887fd5cec93 /src/indent.c
parentd8c9d32c8932e93008bfd4e8828ed42f4e9f8315 (diff)
patch 8.2.5080: when indenting gets out of hand it is hard to stopv8.2.5080
Problem: When indenting gets out of hand it is hard to stop. Solution: When line gets too long set got_int.
Diffstat (limited to 'src/indent.c')
-rw-r--r--src/indent.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/indent.c b/src/indent.c
index 7598c1cf5b..f197027697 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -1781,6 +1781,8 @@ ex_retab(exarg_T *eap)
if (vcol >= MAXCOL)
{
emsg(_(e_resulting_text_too_long));
+ // set got_int to break out of any loop
+ got_int = TRUE;
break;
}
if (has_mbyte)