Mercurial > vim
changeset 24671:703bf1d19cfe v8.2.2874
patch 8.2.2874: MS-Windows: screen redraws too often
Commit: https://github.com/vim/vim/commit/4eb1914e1bd870a7ea829cae150e1f9fdc3df7b1
Author: matveyt <matthewtarasov@gmail.com>
Date: Thu May 20 11:54:10 2021 +0200
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 https://github.com/vim/vim/issues/8230,
closes #8211)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 20 May 2021 12:00:03 +0200 |
parents | 8591bb08c6bb |
children | f228c8088d9a |
files | src/os_win32.c src/version.c |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/os_win32.c +++ b/src/os_win32.c @@ -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;