Problem: popup: flicker when wildtrigger() refreshes the popup menu
Solution: Wrap the pum teardown and cmdline redraw in synchronized
terminal output (Yasuhiro Matsumoto).
Reduces flicker when wildtrigger() refreshes the popup on every
keystroke and the cmdline is wrapped: the un-scroll inside
update_screen() and the re-scroll inside redrawcmd() are emitted as
one atomic terminal update.
closes: #20081
Signed-off-by: Yasuhiro Matsumoto <mattn.jp@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
RedrawingDisabled = 0;
#endif
+ term_set_sync_output(TERM_SYNC_OUTPUT_ENABLE);
pum_undisplay();
VIM_CLEAR(compl_match_array);
compl_match_arraysize = 0;
else
pum_call_update_screen();
redrawcmd();
+ term_set_sync_output(TERM_SYNC_OUTPUT_DISABLE);
// When a function is called (e.g. for 'foldtext') KeyTyped might be reset
// as a side effect.
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 424,
/**/
423,
/**/