summaryrefslogtreecommitdiff
path: root/src/misc1.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-12-04 17:20:27 +0000
committerBram Moolenaar <Bram@vim.org>2021-12-04 17:20:27 +0000
commit23bdef2571b589414cd9744059abd507b043996b (patch)
treea8652e5e32f22039ca8ac44c0c0f38a88bf6e603 /src/misc1.c
parent8dea145e39a2569153cb63487d3403a46a882189 (diff)
downloadvim-git-23bdef2571b589414cd9744059abd507b043996b.tar.gz
patch 8.2.3738: screen is cleared when a FocusLost autocommand triggersv8.2.3738
Problem: Screen is cleared when a FocusLost autocommand triggers. Solution: Do not redraw when at the hit-enter or more prompt. (closes #9274)
Diffstat (limited to 'src/misc1.c')
-rw-r--r--src/misc1.c3
1 files changed, 2 insertions, 1 deletions
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);