mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
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:
@@ -847,6 +847,8 @@ void ex_retab(exarg_T *eap)
|
|||||||
vcol += win_chartabsize(curwin, ptr + col, (colnr_T)vcol);
|
vcol += win_chartabsize(curwin, ptr + col, (colnr_T)vcol);
|
||||||
if (vcol >= MAXCOL) {
|
if (vcol >= MAXCOL) {
|
||||||
emsg(_(e_resulting_text_too_long));
|
emsg(_(e_resulting_text_too_long));
|
||||||
|
// set got_int to break out of any loop
|
||||||
|
got_int = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
col += utfc_ptr2len(ptr + col);
|
col += utfc_ptr2len(ptr + col);
|
||||||
|
Reference in New Issue
Block a user