]> granicus.if.org Git - vim/commitdiff
patch 8.1.0373: screen updating still slow when 'cursorline' is set v8.1.0373
authorBram Moolenaar <Bram@vim.org>
Wed, 12 Sep 2018 20:27:15 +0000 (22:27 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 12 Sep 2018 20:27:15 +0000 (22:27 +0200)
Problem:    Screen updating still slow when 'cursorline' is set.
Solution:   Fix setting last_cursorline.

src/move.c
src/version.c

index 68f8ae4a42c496a01f8ed6f0275a6618e24fb288..120ee5a55684db850784e3cabef64cd3013bd0a3 100644 (file)
@@ -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
     }
 }
 
index 53dbfd965716ed27d41c25f83427ab0e606b5077..a4df8207041ac92d941e99dd3d047450c85c1c3d 100644 (file)
@@ -794,6 +794,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    373,
 /**/
     372,
 /**/