Permalink
Browse files

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().
  • Loading branch information...
brammool committed Jan 31, 2017
1 parent 070b33d commit e3caa1109072b9655f8d5103c92efd73177f8577
Showing with 9 additions and 0 deletions.
  1. +7 −0 src/ui.c
  2. +2 −0 src/version.c
View
@@ -363,12 +363,19 @@ ui_breakcheck(void)
void
ui_breakcheck_force(int force)
{
+ int save_us = updating_screen;
+
+ /* We do not want gui_resize_shell() to redraw the screen here. */
+ ++updating_screen;
+
#ifdef FEAT_GUI
if (gui.in_use)
gui_mch_update();
else
#endif
mch_breakcheck(force);
+
+ updating_screen = save_us;
}
/*****************************************************************************
View
@@ -764,6 +764,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 275,
/**/
274,
/**/

0 comments on commit e3caa11

Please sign in to comment.