From ab5083b5fc9fc8c62dae6aefc4fb2615a61c6fff Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Tue, 23 Feb 2021 22:49:57 -0500 Subject: pos: define MAXCOL to INT_MAX Partial port of patch v8.1.0953. Remove useless casts on MAXCOL. --- src/nvim/misc1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/misc1.c') diff --git a/src/nvim/misc1.c b/src/nvim/misc1.c index fcffe64595..34c43da0f7 100644 --- a/src/nvim/misc1.c +++ b/src/nvim/misc1.c @@ -412,7 +412,7 @@ int plines_win_nofold(win_T *wp, linenr_T lnum) s = ml_get_buf(wp->w_buffer, lnum, FALSE); if (*s == NUL) /* empty line */ return 1; - col = win_linetabsize(wp, s, (colnr_T)MAXCOL); + col = win_linetabsize(wp, s, MAXCOL); // If list mode is on, then the '$' at the end of the line may take up one // extra column. -- cgit