0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

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 #5079)
This commit is contained in:
Bram Moolenaar
2019-10-24 22:32:31 +02:00
parent aa1f04d092
commit 11a58af66f
10 changed files with 36 additions and 31 deletions

View File

@@ -2124,7 +2124,12 @@ win_update(win_T *wp)
|| (wp->w_match_head != NULL
&& buf->b_mod_xlines != 0)
#endif
)))))
))))
#ifdef FEAT_SYN_HL
|| (wp->w_p_cul && (lnum == wp->w_cursor.lnum
|| lnum == wp->w_last_cursorline))
#endif
)
{
#ifdef FEAT_SEARCH_EXTRA
if (lnum == mod_top)