patch 8.2.4644: redrawing too often when 'relativenumber' is set
Problem: Redrawing too often when 'relativenumber' is set.
Solution: Only redraw when the cursor line changed. (Lewis Russell,
closes #10040)
diff --git a/src/change.c b/src/change.c
index 54ed684..afc32b7 100644
--- a/src/change.c
+++ b/src/change.c
@@ -641,7 +641,7 @@
set_topline(wp, wp->w_topline);
#endif
// Relative numbering may require updating more.
- if (wp->w_p_rnu)
+ if (wp->w_p_rnu && xtra != 0)
redraw_win_later(wp, SOME_VALID);
#ifdef FEAT_SYN_HL
// Cursor line highlighting probably need to be updated with