mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 16:58:17 +00:00
pos: define MAXCOL to INT_MAX
Partial port of patch v8.1.0953. Remove useless casts on MAXCOL.
This commit is contained in:
@@ -4305,11 +4305,12 @@ format_lines(
|
||||
* tabs and spaces, according to current options */
|
||||
(void)set_indent(get_indent(), SIN_CHANGED);
|
||||
|
||||
/* put cursor on last non-space */
|
||||
State = NORMAL; /* don't go past end-of-line */
|
||||
coladvance((colnr_T)MAXCOL);
|
||||
while (curwin->w_cursor.col && ascii_isspace(gchar_cursor()))
|
||||
// put cursor on last non-space
|
||||
State = NORMAL; // don't go past end-of-line
|
||||
coladvance(MAXCOL);
|
||||
while (curwin->w_cursor.col && ascii_isspace(gchar_cursor())) {
|
||||
dec_cursor();
|
||||
}
|
||||
|
||||
/* do the formatting, without 'showmode' */
|
||||
State = INSERT; /* for open_line() */
|
||||
|
Reference in New Issue
Block a user