From 5a564bf242828a04c8fe12c7e83154cb09acf4aa Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Thu, 17 Aug 2023 20:35:51 +0800 Subject: refactor: cast to int earlier when using 'so' and 'siso' (#24756) --- src/nvim/cursor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/cursor.c') diff --git a/src/nvim/cursor.c b/src/nvim/cursor.c index 8ba0b2ffb3..a837618f5b 100644 --- a/src/nvim/cursor.c +++ b/src/nvim/cursor.c @@ -460,7 +460,7 @@ bool set_leftcol(colnr_T leftcol) bool retval = false; // If the cursor is right or left of the screen, move it to last or first // visible character. - long siso = get_sidescrolloff_value(curwin); + int siso = get_sidescrolloff_value(curwin); if (curwin->w_virtcol > (colnr_T)(lastcol - siso)) { retval = true; coladvance((colnr_T)(lastcol - siso)); -- cgit