refactor: cast to int earlier when using 'so' and 'siso' (#24756)

This commit is contained in:
zeertzjq
2023-08-17 20:35:51 +08:00
committed by GitHub
parent 4292575dfc
commit 5a564bf242
6 changed files with 23 additions and 25 deletions

View File

@@ -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));