1
0
forked from aniani/vim

patch 7.4.1995

Problem:    GUI: cursor drawn in wrong place if a timer callback causes a
            screen update. (David Samvelyan)
Solution:   Also redraw the cursor when it's blinking and on.
This commit is contained in:
Bram Moolenaar
2016-07-07 16:43:02 +02:00
parent 05e418d436
commit 9d5d3c9c44
12 changed files with 40 additions and 3 deletions

View File

@@ -432,9 +432,9 @@ redraw_after_callback(void)
#ifdef FEAT_GUI
if (gui.in_use)
{
/* Don't update the cursor while it is blinking, it will get
* updated soon and this avoids interrupting the blinking. */
if (!gui_mch_is_blinking())
/* Don't update the cursor when it is blinking and off to avoid
* flicker. */
if (!gui_mch_is_blink_off())
gui_update_cursor(FALSE, FALSE);
gui_mch_flush();
}