forked from aniani/vim
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.
This commit is contained in:
@@ -153,12 +153,14 @@ redraw_for_cursorline(win_T *wp)
|
|||||||
// in the same window.
|
// in the same window.
|
||||||
redrawWinline(wp, last_cursorline, FALSE);
|
redrawWinline(wp, last_cursorline, FALSE);
|
||||||
redrawWinline(wp, wp->w_cursor.lnum, FALSE);
|
redrawWinline(wp, wp->w_cursor.lnum, FALSE);
|
||||||
last_cursorline = wp->w_cursor.lnum;
|
|
||||||
redraw_win_later(wp, VALID);
|
redraw_win_later(wp, VALID);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
redraw_win_later(wp, SOME_VALID);
|
redraw_win_later(wp, SOME_VALID);
|
||||||
|
#ifdef FEAT_SYN_HL
|
||||||
|
last_cursorline = wp->w_cursor.lnum;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -794,6 +794,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
373,
|
||||||
/**/
|
/**/
|
||||||
372,
|
372,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user