0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 7.4.2199

Problem:    In the GUI the cursor is hidden when redrawing any window,
            causing flicker.
Solution:   Only undraw the cursor when updating the window it's in.
This commit is contained in:
Bram Moolenaar
2016-08-12 14:08:25 +02:00
parent 0e5d3a2940
commit 107abd2ca5
5 changed files with 18 additions and 12 deletions

View File

@@ -1964,12 +1964,13 @@ gui_write(
* gui_can_update_cursor() afterwards.
*/
void
gui_dont_update_cursor(void)
gui_dont_update_cursor(int undraw)
{
if (gui.in_use)
{
/* Undraw the cursor now, we probably can't do it after the change. */
gui_undraw_cursor();
if (undraw)
gui_undraw_cursor();
can_update_cursor = FALSE;
}
}