Skip to content

Commit e3caa11

Browse files
committed
patch 8.0.0275: the screen may be updated at the wrong time
Problem: When checking for CTRL-C typed the GUI may detect a screen resize and redraw the screen, causing trouble. Solution: Set updating_screen in ui_breakcheck().
1 parent 070b33d commit e3caa11

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/ui.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,12 +363,19 @@ ui_breakcheck(void)
363363
void
364364
ui_breakcheck_force(int force)
365365
{
366+
int save_us = updating_screen;
367+
368+
/* We do not want gui_resize_shell() to redraw the screen here. */
369+
++updating_screen;
370+
366371
#ifdef FEAT_GUI
367372
if (gui.in_use)
368373
gui_mch_update();
369374
else
370375
#endif
371376
mch_breakcheck(force);
377+
378+
updating_screen = save_us;
372379
}
373380

374381
/*****************************************************************************

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+
275,
767769
/**/
768770
274,
769771
/**/

0 commit comments

Comments
 (0)