mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 05:28:33 +00:00
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.
1b7fefcbce
This commit is contained in:
@@ -110,11 +110,11 @@ static void 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 {
|
||||||
redraw_win_later(wp, SOME_VALID);
|
redraw_win_later(wp, SOME_VALID);
|
||||||
}
|
}
|
||||||
|
last_cursorline = wp->w_cursor.lnum;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user