diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-08-17 20:35:51 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-17 20:35:51 +0800 |
commit | 5a564bf242828a04c8fe12c7e83154cb09acf4aa (patch) | |
tree | aac46d05c1c14783fce95a2448e817df62d3422c /src/nvim/cursor.c | |
parent | 4292575dfc3ecd02874fc291769c8b496bf94abf (diff) | |
download | rneovim-5a564bf242828a04c8fe12c7e83154cb09acf4aa.tar.gz rneovim-5a564bf242828a04c8fe12c7e83154cb09acf4aa.tar.bz2 rneovim-5a564bf242828a04c8fe12c7e83154cb09acf4aa.zip |
refactor: cast to int earlier when using 'so' and 'siso' (#24756)
Diffstat (limited to 'src/nvim/cursor.c')
-rw-r--r-- | src/nvim/cursor.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |