0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

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)