To: vim_dev@googlegroups.com Subject: Patch 8.2.3738 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.3738 Problem: Screen is cleared when a FocusLost autocommand triggers. Solution: Do not redraw when at the hit-enter or more prompt. (closes #9274) Files: src/misc1.c *** ../vim-8.2.3737/src/misc1.c 2021-11-17 15:51:46.421992164 +0000 --- src/misc1.c 2021-12-04 17:18:39.315603150 +0000 *************** *** 852,858 **** if (n == KEYLEN_REMOVED) // key code removed { ! if (must_redraw != 0 && !need_wait_return && (State & CMDLINE) == 0) { // Redrawing was postponed, do it now. update_screen(0); --- 852,859 ---- if (n == KEYLEN_REMOVED) // key code removed { ! if (must_redraw != 0 && !need_wait_return ! && (State & (CMDLINE|HITRETURN|ASKMORE)) == 0) { // Redrawing was postponed, do it now. update_screen(0); *** ../vim-8.2.3737/src/version.c 2021-12-04 15:12:36.957739980 +0000 --- src/version.c 2021-12-04 17:20:15.247458971 +0000 *************** *** 755,756 **** --- 755,758 ---- { /* Add new patch number below this line */ + /**/ + 3738, /**/ -- Engineers will go without food and hygiene for days to solve a problem. (Other times just because they forgot.) (Scott Adams - The Dilbert principle) /// 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 ///