=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/screen-write.c,v retrieving revision 1.209 retrieving revision 1.210 diff -c -r1.209 -r1.210 *** src/usr.bin/tmux/screen-write.c 2022/08/02 11:09:26 1.209 --- src/usr.bin/tmux/screen-write.c 2022/10/25 09:04:49 1.210 *************** *** 1,4 **** ! /* $OpenBSD: screen-write.c,v 1.209 2022/08/02 11:09:26 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: screen-write.c,v 1.210 2022/10/25 09:04:49 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 1505,1512 **** screen_write_collect_flush(ctx, 0, __func__); ! screen_write_initctx(ctx, &ttyctx, 1); ! ttyctx.redraw_cb(&ttyctx); } /* Trim collected items. */ --- 1505,1514 ---- screen_write_collect_flush(ctx, 0, __func__); ! if (ttyctx.redraw_cb != NULL) { ! screen_write_initctx(ctx, &ttyctx, 1); ! ttyctx.redraw_cb(&ttyctx); ! } } /* Trim collected items. */ *************** *** 2127,2134 **** screen_write_collect_flush(ctx, 0, __func__); screen_alternate_on(ctx->s, gc, cursor); ! screen_write_initctx(ctx, &ttyctx, 1); ! ttyctx.redraw_cb(&ttyctx); } /* Turn alternate screen off. */ --- 2129,2138 ---- screen_write_collect_flush(ctx, 0, __func__); screen_alternate_on(ctx->s, gc, cursor); ! if (ttyctx.redraw_cb != NULL) { ! screen_write_initctx(ctx, &ttyctx, 1); ! ttyctx.redraw_cb(&ttyctx); ! } } /* Turn alternate screen off. */ *************** *** 2145,2150 **** screen_write_collect_flush(ctx, 0, __func__); screen_alternate_off(ctx->s, gc, cursor); ! screen_write_initctx(ctx, &ttyctx, 1); ! ttyctx.redraw_cb(&ttyctx); } --- 2149,2156 ---- screen_write_collect_flush(ctx, 0, __func__); screen_alternate_off(ctx->s, gc, cursor); ! if (ttyctx.redraw_cb != NULL) { ! screen_write_initctx(ctx, &ttyctx, 1); ! ttyctx.redraw_cb(&ttyctx); ! } }