patch 8.2.5080: when indenting gets out of hand it is hard to stop
Problem: When indenting gets out of hand it is hard to stop.
Solution: When line gets too long set got_int.
diff --git a/src/indent.c b/src/indent.c
index 7598c1c..f197027 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -1781,6 +1781,8 @@
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)
diff --git a/src/version.c b/src/version.c
index 47c2466..20ca4eb 100644
--- a/src/version.c
+++ b/src/version.c
@@ -735,6 +735,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 5080,
+/**/
5079,
/**/
5078,