1
0
forked from aniani/vim

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)
This commit is contained in:
Lewis Russell
2022-03-29 11:38:17 +01:00
committed by Bram Moolenaar
parent 24565cf27b
commit 1624639ec8
4 changed files with 10 additions and 4 deletions

View File

@@ -641,7 +641,7 @@ changed_common(
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