comparison src/indent.c @ 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 45c182c4f7e9
children 0e0e298e05c1
comparison
equal deleted inserted replaced
29118:b96fb0230ae9 29119:eb383afb25ea
1779 break; 1779 break;
1780 vcol += chartabsize(ptr + col, (colnr_T)vcol); 1780 vcol += chartabsize(ptr + col, (colnr_T)vcol);
1781 if (vcol >= MAXCOL) 1781 if (vcol >= MAXCOL)
1782 { 1782 {
1783 emsg(_(e_resulting_text_too_long)); 1783 emsg(_(e_resulting_text_too_long));
1784 // set got_int to break out of any loop
1785 got_int = TRUE;
1784 break; 1786 break;
1785 } 1787 }
1786 if (has_mbyte) 1788 if (has_mbyte)
1787 col += (*mb_ptr2len)(ptr + col); 1789 col += (*mb_ptr2len)(ptr + col);
1788 else 1790 else