Skip to content

Commit e21d69e

Browse files
committed
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)
1 parent 2061552 commit e21d69e

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

src/getchar.c

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2913,8 +2913,16 @@ vgetorpeek(int advance)
29132913
}
29142914
#ifdef FEAT_GUI
29152915
/* may unshow different cursor shape */
2916-
if (gui.in_use && shape_changed)
2917-
gui_update_cursor(TRUE, FALSE);
2916+
if (gui.in_use)
2917+
{
2918+
if (cmd_silent)
2919+
gui_dont_update_cursor(TRUE);
2920+
else
2921+
gui_can_update_cursor();
2922+
2923+
if (shape_changed)
2924+
gui_update_cursor(TRUE, FALSE);
2925+
}
29182926
#endif
29192927

29202928
--vgetc_busy;

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@ static char *(features[]) =
764764

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
626,
767769
/**/
768770
625,
769771
/**/

0 commit comments

Comments
 (0)