aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/terminal.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2023-07-03 13:17:37 +0200
committerGitHub <noreply@github.com>2023-07-03 13:17:37 +0200
commit5f442e1a4a831ed2eb70d5c2dd66c47b0b8aa7e1 (patch)
tree2c5ae2854f3688497b05f80bd0302feb9162a308 /src/nvim/terminal.c
parentf771d6247147b393238fe57065a96fb5e9635358 (diff)
parentfcf3519c65a2d6736de437f686e788684a6c8564 (diff)
downloadrneovim-5f442e1a4a831ed2eb70d5c2dd66c47b0b8aa7e1.tar.gz
rneovim-5f442e1a4a831ed2eb70d5c2dd66c47b0b8aa7e1.tar.bz2
rneovim-5f442e1a4a831ed2eb70d5c2dd66c47b0b8aa7e1.zip
Merge pull request #23167 from dundargoc/refactor/long
refactor: remove long
Diffstat (limited to 'src/nvim/terminal.c')
-rw-r--r--src/nvim/terminal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/terminal.c b/src/nvim/terminal.c
index 676ac954f7..1479656bca 100644
--- a/src/nvim/terminal.c
+++ b/src/nvim/terminal.c
@@ -1444,7 +1444,7 @@ static bool send_mouse_event(Terminal *term, int c)
if (mod_mask & (MOD_MASK_SHIFT | MOD_MASK_CTRL)) {
scroll_redraw(direction, curwin->w_botline - curwin->w_topline);
} else if (p_mousescroll_vert > 0) {
- scroll_redraw(direction, p_mousescroll_vert);
+ scroll_redraw(direction, (linenr_T)p_mousescroll_vert);
}
curwin->w_redr_status = true;