vim-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.

a7ac4c9c39

Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
zeertzjq
2022-11-30 09:46:03 +08:00
parent d311c5481d
commit ec52658af7

View File

@@ -847,6 +847,8 @@ void ex_retab(exarg_T *eap)
vcol += win_chartabsize(curwin, ptr + col, (colnr_T)vcol);
if (vcol >= MAXCOL) {
emsg(_(e_resulting_text_too_long));
// set got_int to break out of any loop
got_int = true;
break;
}
col += utfc_ptr2len(ptr + col);