vim-patch:8.1.2214: too much is redrawn when 'cursorline' is set

Problem:    Too much is redrawn when 'cursorline' is set.
Solution:   Don't do a complete redraw. (closes vim/vim#5079)
11a58af66f
This commit is contained in:
zeertzjq
2021-07-31 17:59:33 +08:00
parent 56b437a6c7
commit 68f0670dfc
3 changed files with 24 additions and 21 deletions

View File

@@ -1371,7 +1371,9 @@ static void win_update(win_T *wp, Providers *providers)
// match in fixed position might need redraw
// if lines were inserted or deleted
|| (wp->w_match_head != NULL
&& buf->b_mod_xlines != 0)))))) {
&& buf->b_mod_xlines != 0)))))
|| (wp->w_p_cul && (lnum == wp->w_cursor.lnum
|| lnum == wp->w_last_cursorline))) {
if (lnum == mod_top) {
top_to_mod = false;
}