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.
This commit is contained in:
Bram Moolenaar
2022-06-12 21:11:03 +01:00
parent d8c9d32c89
commit a7ac4c9c39
2 changed files with 4 additions and 0 deletions

View 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)

View File

@ -734,6 +734,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
5080,
/**/
5079,
/**/