changeset 26414:3f842f7b5278 v8.2.3738

patch 8.2.3738: screen is cleared when a FocusLost autocommand triggers Commit: https://github.com/vim/vim/commit/23bdef2571b589414cd9744059abd507b043996b Author: Bram Moolenaar <Bram@vim.org> Date: Sat Dec 4 17:20:27 2021 +0000 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 https://github.com/vim/vim/issues/9274)
author Bram Moolenaar <Bram@vim.org>
date Sat, 04 Dec 2021 18:30:03 +0100
parents 34ebe97c3bd5
children f54838eb6663
files src/misc1.c src/version.c
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);
--- a/src/version.c
+++ b/src/version.c
@@ -754,6 +754,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    3738,
+/**/
     3737,
 /**/
     3736,