diff --git a/src/term.c b/src/term.c index e00531d4af..8b557ae992 100644 --- a/src/term.c +++ b/src/term.c @@ -8056,6 +8056,11 @@ term_set_sync_output(int flags) { if (sync_output_state == 0 || --sync_output_state > 0) return; + // Flush the output buffer before ending the sync batch so that + // all drawing output is sent to the terminal within the + // BSU..ESU window. Without this, the drawing data remaining in + // out_buf would be sent after ESU, outside the sync batch. + out_flush(); str = T_ESU; } else diff --git a/src/version.c b/src/version.c index 762553cd58..37ef83b978 100644 --- a/src/version.c +++ b/src/version.c @@ -734,6 +734,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 150, /**/ 149, /**/