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

@@ -2812,7 +2812,7 @@ static void nv_zet(cmdarg_T *cap)
long old_fdl = curwin->w_p_fdl;
int old_fen = curwin->w_p_fen;
int siso = (int)get_sidescrolloff_value(curwin);
int siso = get_sidescrolloff_value(curwin);
if (ascii_isdigit(nchar) && !nv_z_get_count(cap, &nchar)) {
return;