Permalink
Browse files

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)
  • Loading branch information...
brammool committed Jun 5, 2017
1 parent 2061552 commit e21d69eec1870a3f4732653aa8ee25d5da10128c
Showing with 12 additions and 2 deletions.
  1. +10 −2 src/getchar.c
  2. +2 −0 src/version.c
View
@@ -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
@@ -764,6 +764,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
626,
/**/
625,
/**/

0 comments on commit e21d69e

Please sign in to comment.