To: vim_dev@googlegroups.com Subject: Patch 8.1.1998 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.1.1998 Problem: Redraw even when no popup window filter was invoked. Solution: Only redraw when must_redraw was set to a larger value. Files: src/popupwin.c *** ../vim-8.1.1997/src/popupwin.c 2019-09-07 14:06:34.328256587 +0200 --- src/popupwin.c 2019-09-07 14:24:33.574640080 +0200 *************** *** 2779,2784 **** --- 2779,2785 ---- win_T *wp; int save_KeyTyped = KeyTyped; int state; + int was_must_redraw = must_redraw; if (recursive) return FALSE; *************** *** 2802,2808 **** && (wp->w_filter_mode & state) != 0) res = invoke_popup_filter(wp, c); ! if (must_redraw) redraw_after_callback(FALSE); recursive = FALSE; KeyTyped = save_KeyTyped; --- 2803,2809 ---- && (wp->w_filter_mode & state) != 0) res = invoke_popup_filter(wp, c); ! if (must_redraw > was_must_redraw) redraw_after_callback(FALSE); recursive = FALSE; KeyTyped = save_KeyTyped; *** ../vim-8.1.1997/src/version.c 2019-09-07 14:06:34.328256587 +0200 --- src/version.c 2019-09-07 14:33:24.485985185 +0200 *************** *** 759,760 **** --- 759,762 ---- { /* Add new patch number below this line */ + /**/ + 1998, /**/ -- hundred-and-one symptoms of being an internet addict: 204. You're being audited because you mailed your tax return to the IRC. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///