0
0
mirror of https://github.com/vim/vim.git synced 2025-09-05 21:43:39 -04:00

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)
This commit is contained in:
Bram Moolenaar 2021-12-04 17:20:27 +00:00
parent 8dea145e39
commit 23bdef2571
2 changed files with 4 additions and 1 deletions

View 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);

View File

@ -753,6 +753,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
3738,
/**/
3737,
/**/