From: Bram Moolenaar Date: Sat, 4 Dec 2021 17:20:27 +0000 (+0000) Subject: patch 8.2.3738: screen is cleared when a FocusLost autocommand triggers X-Git-Tag: v8.2.3738 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=23bdef2571b589414cd9744059abd507b043996b;p=vim patch 8.2.3738: screen is cleared when a FocusLost autocommand triggers Problem: Screen is cleared when a FocusLost autocommand triggers. Solution: Do not redraw when at the hit-enter or more prompt. (closes #9274) --- diff --git a/src/misc1.c b/src/misc1.c index e35ba98f4..e7808671b 100644 --- a/src/misc1.c +++ b/src/misc1.c @@ -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); diff --git a/src/version.c b/src/version.c index f1d0e878c..66a0e92c8 100644 --- a/src/version.c +++ b/src/version.c @@ -753,6 +753,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 3738, /**/ 3737, /**/