summaryrefslogtreecommitdiff
path: root/src/move.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-09-12 22:27:15 +0200
committerBram Moolenaar <Bram@vim.org>2018-09-12 22:27:15 +0200
commit1b7fefcbce5dd2fd337e217d4857b941da3f8bed (patch)
tree0471310aff5eada8cff5d8f0ebfb5aaf81d31ecf /src/move.c
parent90a997987dbbe43af3c15118a35f658f0f037d1d (diff)
downloadvim-git-1b7fefcbce5dd2fd337e217d4857b941da3f8bed.tar.gz
patch 8.1.0373: screen updating still slow when 'cursorline' is setv8.1.0373
Problem: Screen updating still slow when 'cursorline' is set. Solution: Fix setting last_cursorline.
Diffstat (limited to 'src/move.c')
-rw-r--r--src/move.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/move.c b/src/move.c
index 68f8ae4a4..120ee5a55 100644
--- a/src/move.c
+++ b/src/move.c
@@ -153,12 +153,14 @@ redraw_for_cursorline(win_T *wp)
// in the same window.
redrawWinline(wp, last_cursorline, FALSE);
redrawWinline(wp, wp->w_cursor.lnum, FALSE);
- last_cursorline = wp->w_cursor.lnum;
redraw_win_later(wp, VALID);
}
else
#endif
redraw_win_later(wp, SOME_VALID);
+#ifdef FEAT_SYN_HL
+ last_cursorline = wp->w_cursor.lnum;
+#endif
}
}