]> granicus.if.org Git - vim/commitdiff
patch 8.2.3738: screen is cleared when a FocusLost autocommand triggers v8.2.3738
authorBram Moolenaar <Bram@vim.org>
Sat, 4 Dec 2021 17:20:27 +0000 (17:20 +0000)
committerBram Moolenaar <Bram@vim.org>
Sat, 4 Dec 2021 17:20:27 +0000 (17:20 +0000)
Problem:    Screen is cleared when a FocusLost autocommand triggers.
Solution:   Do not redraw when at the hit-enter or more prompt. (closes #9274)

src/misc1.c
src/version.c

index e35ba98f432b2181a0c5ab69bf4e07be6e5ab308..e7808671b61f33ff402b77bf2375f795cdbeaa37 100644 (file)
@@ -852,7 +852,8 @@ get_keystroke(void)
 
        if (n == KEYLEN_REMOVED)  // key code removed
        {
-           if (must_redraw != 0 && !need_wait_return && (State & CMDLINE) == 0)
+           if (must_redraw != 0 && !need_wait_return
+                                && (State & (CMDLINE|HITRETURN|ASKMORE)) == 0)
            {
                // Redrawing was postponed, do it now.
                update_screen(0);
index f1d0e878c4533d6c7d1b232f64c8f7da4c5babbe..66a0e92c80e6c1f63b9d797306b0a84ad080a9c2 100644 (file)
@@ -753,6 +753,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3738,
 /**/
     3737,
 /**/