changeset 14722:9b150311eb9c v8.1.0373

patch 8.1.0373: screen updating still slow when 'cursorline' is set commit https://github.com/vim/vim/commit/1b7fefcbce5dd2fd337e217d4857b941da3f8bed Author: Bram Moolenaar <Bram@vim.org> Date: Wed Sep 12 22:27:15 2018 +0200 patch 8.1.0373: screen updating still slow when 'cursorline' is set Problem: Screen updating still slow when 'cursorline' is set. Solution: Fix setting last_cursorline.
author Christian Brabandt <cb@256bit.org>
date Wed, 12 Sep 2018 22:30:05 +0200
parents 9ba31aa02b02
children 9687fadbf083
files src/move.c src/version.c
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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
     }
 }
 
--- a/src/version.c
+++ b/src/version.c
@@ -795,6 +795,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    373,
+/**/
     372,
 /**/
     371,