Skip to content

Commit 4eb1914

Browse files
matveytbrammool
authored andcommitted
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)
1 parent 46aa6f9 commit 4eb1914

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/os_win32.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1648,7 +1648,9 @@ WaitForChar(long msec, int ignore_input)
16481648
peek_console_input(g_hConIn, &ir, 1, &cRecords);
16491649

16501650
# ifdef FEAT_MBYTE_IME
1651-
if (State & CMDLINE && msg_row == Rows - 1)
1651+
// May have to redraw if the cursor ends up in the wrong place.
1652+
// Only when not peeking.
1653+
if (State & CMDLINE && msg_row == Rows - 1 && msec != 0)
16521654
{
16531655
CONSOLE_SCREEN_BUFFER_INFO csbi;
16541656

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,8 @@ static char *(features[]) =
750750

751751
static int included_patches[] =
752752
{ /* Add new patch number below this line */
753+
/**/
754+
2874,
753755
/**/
754756
2873,
755757
/**/

0 commit comments

Comments
 (0)