diff options
| author | dundargoc <gocdundar@gmail.com> | 2023-04-17 22:18:58 +0200 |
|---|---|---|
| committer | dundargoc <gocdundar@gmail.com> | 2023-07-03 12:49:09 +0200 |
| commit | fcf3519c65a2d6736de437f686e788684a6c8564 (patch) | |
| tree | 2c5ae2854f3688497b05f80bd0302feb9162a308 /src/nvim/move.c | |
| parent | f771d6247147b393238fe57065a96fb5e9635358 (diff) | |
| download | rneovim-fcf3519c65a2d6736de437f686e788684a6c8564.tar.gz rneovim-fcf3519c65a2d6736de437f686e788684a6c8564.tar.bz2 rneovim-fcf3519c65a2d6736de437f686e788684a6c8564.zip | |
refactor: remove long
long is 32-bits even on 64-bit windows which makes the type suboptimal
for a codebase meant to be cross-platform.
Diffstat (limited to 'src/nvim/move.c')
| -rw-r--r-- | src/nvim/move.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/move.c b/src/nvim/move.c index cc02808e4c..873ef6c417 100644 --- a/src/nvim/move.c +++ b/src/nvim/move.c @@ -1334,7 +1334,7 @@ bool scrolldown(long line_count, int byfold) /// /// @param line_count number of lines to scroll /// @param byfold if true, count a closed fold as one line -bool scrollup(long line_count, int byfold) +bool scrollup(linenr_T line_count, int byfold) { linenr_T topline = curwin->w_topline; linenr_T botline = curwin->w_botline; @@ -1402,8 +1402,8 @@ bool scrollup(long line_count, int byfold) redraw_later(curwin, UPD_NOT_VALID); } } else { - curwin->w_topline += (linenr_T)line_count; - curwin->w_botline += (linenr_T)line_count; // approximate w_botline + curwin->w_topline += line_count; + curwin->w_botline += line_count; // approximate w_botline } if (curwin->w_topline > curbuf->b_ml.ml_line_count) { |