0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 8.0.0626: in the GUI the cursor may flicker

Problem:    In the GUI the cursor may flicker.
Solution:   Check the cmd_silent flag before updating the cursor shape.
            (Hirohito Higashi, closes #1637)
This commit is contained in:
Bram Moolenaar 2017-06-05 19:32:32 +02:00
parent 206155280d
commit e21d69eec1
2 changed files with 12 additions and 2 deletions

View File

@ -2913,8 +2913,16 @@ vgetorpeek(int advance)
}
#ifdef FEAT_GUI
/* may unshow different cursor shape */
if (gui.in_use && shape_changed)
gui_update_cursor(TRUE, FALSE);
if (gui.in_use)
{
if (cmd_silent)
gui_dont_update_cursor(TRUE);
else
gui_can_update_cursor();
if (shape_changed)
gui_update_cursor(TRUE, FALSE);
}
#endif
--vgetc_busy;

View File

@ -764,6 +764,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
626,
/**/
625,
/**/