vim-patch:8.2.4644: redrawing too often when 'relativenumber' is set (#17756)

Problem:  Redrawing too often when 'relativenumber' is set.
Solution: Only redraw when the cursor line changed. (Lewis Russell,
          closes vim/vim#10040)
1624639ec8
This commit is contained in:
Lewis Russell
2022-03-29 12:37:42 +01:00
committed by GitHub
parent d89a80fafc
commit 81d7628c3f
3 changed files with 8 additions and 4 deletions

View File

@@ -1211,6 +1211,8 @@ struct window_S {
colnr_T w_old_visual_col; ///< last known start of visual part
colnr_T w_old_curswant; ///< last known value of Curswant
linenr_T w_last_cursor_lnum_rnu; ///< cursor lnum when 'rnu' was last redrawn
// 'listchars' characters. Defaults set in set_chars_option().
struct {
int eol;