To: vim_dev@googlegroups.com Subject: Patch 8.2.2874 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.2874 Problem: MS-Windows: screen redraws too often. Solution: Do not redraw when peeking for a character. (closes #8230, closes #8211) Files: src/os_win32.c *** ../vim-8.2.2873/src/os_win32.c 2021-05-07 15:00:14.197520296 +0200 --- src/os_win32.c 2021-05-20 11:51:35.081792859 +0200 *************** *** 1648,1654 **** peek_console_input(g_hConIn, &ir, 1, &cRecords); # ifdef FEAT_MBYTE_IME ! if (State & CMDLINE && msg_row == Rows - 1) { CONSOLE_SCREEN_BUFFER_INFO csbi; --- 1648,1656 ---- peek_console_input(g_hConIn, &ir, 1, &cRecords); # ifdef FEAT_MBYTE_IME ! // 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; *** ../vim-8.2.2873/src/version.c 2021-05-19 17:15:00.825866111 +0200 --- src/version.c 2021-05-20 11:53:44.617169132 +0200 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 2874, /**/ -- What the word 'politics' means: 'Poli' in Latin meaning 'many' and 'tics' meaning 'bloodsucking creatures'. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///