mirror of
https://github.com/neovim/neovim.git
synced 2025-09-15 15:58:17 +00:00
refactor: cast to int earlier when using 'so' and 'siso' (#24756)
This commit is contained in:
@@ -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));
|
||||
|
Reference in New Issue
Block a user