summaryrefslogtreecommitdiffstats
path: root/src/drawscreen.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-10-24 22:32:31 +0200
committerBram Moolenaar <Bram@vim.org>2019-10-24 22:32:31 +0200
commit11a58af66fa5c442f0a22c5d59beabf187ed4e89 (patch)
tree19b2b26b7907004365c26f85a667655c45c17d3a /src/drawscreen.c
parentaa1f04d09286085c4031bc7c4ca9fa672f6f4905 (diff)
patch 8.1.2214: too much is redrawn when 'cursorline' is setv8.1.2214
Problem: Too much is redrawn when 'cursorline' is set. Solution: Don't do a complete redraw. (closes #5079)
Diffstat (limited to 'src/drawscreen.c')
-rw-r--r--src/drawscreen.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/drawscreen.c b/src/drawscreen.c
index f6776a1a18..abf34b5e99 100644
--- a/src/drawscreen.c
+++ b/src/drawscreen.c
@@ -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)