]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.5080: when indenting gets out of hand it is hard to stop v8.2.5080
authorBram Moolenaar <Bram@vim.org>
Sun, 12 Jun 2022 20:11:03 +0000 (21:11 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 12 Jun 2022 20:11:03 +0000 (21:11 +0100)
Problem:    When indenting gets out of hand it is hard to stop.
Solution:   When line gets too long set got_int.

src/indent.c
src/version.c

index 7598c1cf5b1f86f82cd04a29cebf4e7e34950d54..f197027697e06ade2873bd9f9af86948e57dd2a6 100644 (file)
@@ -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)
index 47c24667e6794394506aeb107d67e0cc4cdc7b73..20ca4eb5b7f7c043dc8a777a8fa320a08d37d335 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    5080,
 /**/
     5079,
 /**/