changeset 29119:eb383afb25ea v8.2.5080

patch 8.2.5080: when indenting gets out of hand it is hard to stop Commit: https://github.com/vim/vim/commit/a7ac4c9c395d64059437e37045fa0ad5f9fecb0b Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 12 21:11:03 2022 +0100 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.
author Bram Moolenaar <Bram@vim.org>
date Sun, 12 Jun 2022 22:15:03 +0200
parents b96fb0230ae9
children df636592681d
files src/indent.c src/version.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)
--- a/src/version.c
+++ b/src/version.c
@@ -735,6 +735,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    5080,
+/**/
     5079,
 /**/
     5078,