From: Bram Moolenaar Date: Sun, 12 Jun 2022 20:11:03 +0000 (+0100) Subject: patch 8.2.5080: when indenting gets out of hand it is hard to stop X-Git-Tag: v8.2.5080 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7ac4c9c395d64059437e37045fa0ad5f9fecb0b;p=thirdparty%2Fvim.git 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 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) diff --git a/src/version.c b/src/version.c index 47c24667e6..20ca4eb5b7 100644 --- a/src/version.c +++ b/src/version.c @@ -734,6 +734,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 5080, /**/ 5079, /**/