diff options
author | nicm <nicm> | 2020-04-18 07:19:28 +0000 |
---|---|---|
committer | nicm <nicm> | 2020-04-18 07:19:28 +0000 |
commit | e153b928ff5139fdc39b45db493a1c81d2175d21 (patch) | |
tree | bb19e5fdfbe10864a825ca27d72a0a0c94641062 /screen-write.c | |
parent | baf1fca27348a2950b7d1bb26cdf4d34a752b962 (diff) | |
download | rtmux-e153b928ff5139fdc39b45db493a1c81d2175d21.tar.gz rtmux-e153b928ff5139fdc39b45db493a1c81d2175d21.tar.bz2 rtmux-e153b928ff5139fdc39b45db493a1c81d2175d21.zip |
Add formats for pane written/skipped bytes for debugging.
Diffstat (limited to 'screen-write.c')
-rw-r--r-- | screen-write.c | 4 |
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); |