]> granicus.if.org Git - vim/commitdiff
patch 8.0.0275: the screen may be updated at the wrong time v8.0.0275
authorBram Moolenaar <Bram@vim.org>
Tue, 31 Jan 2017 21:07:42 +0000 (22:07 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 31 Jan 2017 21:07:42 +0000 (22:07 +0100)
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().

src/ui.c
src/version.c

index ad2919052e472894a68c992c151b8cf5959642e0..4da79f0c1d35549a26d4fed444e527051b040821 100644 (file)
--- a/src/ui.c
+++ b/src/ui.c
@@ -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;
 }
 
 /*****************************************************************************
index 5814b206f4931dd66687f9f05c9d44e5a2f46ee3..d8b82a87a9e05e828190f2b321c1f4612848d5f8 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    275,
 /**/
     274,
 /**/