1
0
forked from aniani/vim

patch 8.2.2874: MS-Windows: screen redraws too often

Problem:    MS-Windows: screen redraws too often.
Solution:   Do not redraw when peeking for a character. (closes #8230,
            closes #8211)
This commit is contained in:
matveyt
2021-05-20 11:54:10 +02:00
committed by Bram Moolenaar
parent 46aa6f93ac
commit 4eb1914e1b
2 changed files with 5 additions and 1 deletions

View File

@@ -1648,7 +1648,9 @@ WaitForChar(long msec, int ignore_input)
peek_console_input(g_hConIn, &ir, 1, &cRecords);
# ifdef FEAT_MBYTE_IME
if (State & CMDLINE && msg_row == Rows - 1)
// May have to redraw if the cursor ends up in the wrong place.
// Only when not peeking.
if (State & CMDLINE && msg_row == Rows - 1 && msec != 0)
{
CONSOLE_SCREEN_BUFFER_INFO csbi;

View File

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