mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.0.1449: slow redrawing with DirectX
Problem: Slow redrawing with DirectX. Solution: Avoid calling gui_mch_flush() unnecessarily, especially when updating the cursor. (Ken Takata, closes #2560)
This commit is contained in:
@@ -2316,7 +2316,9 @@ msg_scroll_up(void)
|
||||
gui_undraw_cursor();
|
||||
#endif
|
||||
/* scrolling up always works */
|
||||
mch_disable_flush();
|
||||
screen_del_lines(0, 0, 1, (int)Rows, TRUE, 0, NULL);
|
||||
mch_enable_flush();
|
||||
|
||||
if (!can_clear((char_u *)" "))
|
||||
{
|
||||
|
Reference in New Issue
Block a user