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 -- [email protected] -- 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 ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/201909071234.x87CY6Lo017897%40masaka.moolenaar.net.