summaryrefslogtreecommitdiffstats
path: root/screen-write.c
diff options
context:
space:
mode:
authornicm <nicm>2020-04-18 07:19:28 +0000
committernicm <nicm>2020-04-18 07:19:28 +0000
commite153b928ff5139fdc39b45db493a1c81d2175d21 (patch)
treebb19e5fdfbe10864a825ca27d72a0a0c94641062 /screen-write.c
parentbaf1fca27348a2950b7d1bb26cdf4d34a752b962 (diff)
Add formats for pane written/skipped bytes for debugging.
Diffstat (limited to 'screen-write.c')
-rw-r--r--screen-write.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/screen-write.c b/screen-write.c
index bd756ce3..34895c7b 100644
--- a/screen-write.c
+++ b/screen-write.c
@@ -174,6 +174,10 @@ screen_write_stop(struct screen_write_ctx *ctx)
log_debug("%s: %u cells (%u written, %u skipped)", __func__,
ctx->cells, ctx->written, ctx->skipped);
+ if (ctx->wp != NULL) {
+ ctx->wp->written += ctx->written;
+ ctx->wp->skipped += ctx->skipped;
+ }
if (ctx->sync) {
screen_write_initctx(ctx, &ttyctx, 0);