Skip to content

Commit

Permalink
patch 8.2.2874: MS-Windows: screen redraws too often
Browse files Browse the repository at this point in the history
Problem:    MS-Windows: screen redraws too often.
Solution:   Do not redraw when peeking for a character. (closes #8230,
            closes #8211)
  • Loading branch information
matveyt authored and brammool committed May 20, 2021
1 parent 46aa6f9 commit 4eb1914
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/os_win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -750,6 +750,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
2874,
/**/
2873,
/**/
Expand Down

0 comments on commit 4eb1914

Please sign in to comment.