Mercurial > vim
diff src/getchar.c @ 13150:808625d4b71b v8.0.1449
patch 8.0.1449: slow redrawing with DirectX
commit https://github.com/vim/vim/commit/a338adcf222b6a24e26ea5ae6a2ad27f914acb38
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jan 31 20:51:47 2018 +0100
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)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 31 Jan 2018 21:00:08 +0100 |
parents | 85a601f985ab |
children | c1534eb682a6 |
line wrap: on
line diff
--- a/src/getchar.c +++ b/src/getchar.c @@ -2972,16 +2972,10 @@ inchar( if (wait_time == -1L || wait_time > 100L) /* flush output before waiting */ { cursor_on(); - out_flush(); -#ifdef FEAT_GUI - if (gui.in_use) - { - gui_update_cursor(FALSE, FALSE); -# ifdef FEAT_MOUSESHAPE - if (postponed_mouseshape) - update_mouseshape(-1); -# endif - } + out_flush_cursor(FALSE, FALSE); +#if defined(FEAT_GUI) && defined(FEAT_MOUSESHAPE) + if (gui.in_use && postponed_mouseshape) + update_mouseshape(-1); #endif }