summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm>2019-04-03 06:43:04 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2019-04-03 09:31:32 +0100
commit481c3f3f2ea5de650da836cd9684a2d1a2cb2c33 (patch)
tree30715db4aa2fedaf806103bbec9f701c8adeb0e3
parent8968acd678d14cf1ff820ad829d06ca93c2047f1 (diff)
screen_write_fast_copy can no longer assume the target screen is default
(it isn't for the pane status lines).
-rw-r--r--screen-write.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/screen-write.c b/screen-write.c
index 0d57b818..566d4d14 100644
--- a/screen-write.c
+++ b/screen-write.c
@@ -324,7 +324,7 @@ screen_write_copy(struct screen_write_ctx *ctx, struct screen *src, u_int px,
/*
* Copy from another screen but without the selection stuff. Also assumes the
- * target region is already big enough and already cleared.
+ * target region is already big enough.
*/
void
screen_write_fast_copy(struct screen_write_ctx *ctx, struct screen *src,
@@ -349,8 +349,7 @@ screen_write_fast_copy(struct screen_write_ctx *ctx, struct screen *src,
grid_get_cell(gd, xx, yy, &gc);
if (xx + gc.data.width > px + nx)
break;
- if (!grid_cells_equal(&gc, &grid_default_cell))
- grid_view_set_cell(ctx->s->grid, cx, cy, &gc);
+ grid_view_set_cell(ctx->s->grid, cx, cy, &gc);
cx++;
}
cy++;