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:
parent
206155280d
commit
e21d69eec1
@ -2913,8 +2913,16 @@ vgetorpeek(int advance)
|
||||
}
|
||||
#ifdef FEAT_GUI
|
||||
/* may unshow different cursor shape */
|
||||
if (gui.in_use && shape_changed)
|
||||
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;
|
||||
|
@ -764,6 +764,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
626,
|
||||
/**/
|
||||
625,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user