# HG changeset patch # User Christian Brabandt # Date 1496684703 -7200 # Node ID 1658ac359af1ea067468f3050a1c2062928c8a7d # Parent 92a0230647df69d1575b8cbacbdb1b61c7afed55 patch 8.0.0626: in the GUI the cursor may flicker commit https://github.com/vim/vim/commit/e21d69eec1870a3f4732653aa8ee25d5da10128c Author: Bram Moolenaar Date: Mon Jun 5 19:32:32 2017 +0200 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) diff --git a/src/getchar.c b/src/getchar.c --- a/src/getchar.c +++ b/src/getchar.c @@ -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; diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -765,6 +765,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 626, +/**/ 625, /**/ 624,