patch 9.1.0077: Unnecessary call to redraw_for_cursorline() in nv_mousescroll()
Problem: The call to redraw_for_cursorline() in nv_mousescroll() is
unnecessary because redraw_for_cursorline() only sets redraw
type to UPD_VALID, and all code paths in do_mousescroll()
already set redraw type to at least UPD_VALID.
Solution: Remove call to redraw_for_cursorline() in nv_mousescroll().
(zeertzjq)
closes: #13979
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
diff --git a/src/move.c b/src/move.c
index 5d2fece..9ea24c8 100644
--- a/src/move.c
+++ b/src/move.c
@@ -19,6 +19,7 @@
#include "vim.h"
+static void redraw_for_cursorline(win_T *wp);
static int scrolljump_value(void);
static int check_top_offset(void);
static void curs_rows(win_T *wp);
@@ -155,7 +156,7 @@
* Redraw when w_cline_row changes and 'relativenumber' or 'cursorline' is
* set.
*/
- void
+ static void
redraw_for_cursorline(win_T *wp)
{
if ((wp->w_p_rnu