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:
committed by
Bram Moolenaar
parent
24565cf27b
commit
1624639ec8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user