Problem: popup: When an async redraw is triggered, the screen may flicker
because the terminal may render the intermediate states of the
redraw.
Solution: Enable synchronized output if possible to ensure the terminal
renders the entire update at once (Yasuhiro Matsumoto).
closes: #19584
Signed-off-by: Yasuhiro Matsumoto <mattn.jp@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
{
++redrawing_for_callback;
+ term_set_sync_output(TERM_SYNC_OUTPUT_ENABLE);
+
if (State == MODE_HITRETURN || State == MODE_ASKMORE
|| State == MODE_SETWSIZE || State == MODE_EXTERNCMD
|| State == MODE_CONFIRM || exmode_active)
}
}
cursor_on();
+ term_set_sync_output(TERM_SYNC_OUTPUT_DISABLE);
#ifdef FEAT_GUI
if (gui.in_use && !gui_mch_is_blink_off())
// Don't update the cursor when it is blinking and off to avoid
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 115,
/**/
114,
/**/