From 06d58b3b7b4c20828681e24007d8b9bc1d35fdad Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 3 Apr 2019 06:43:04 +0000 Subject: screen_write_fast_copy can no longer assume the target screen is default (it isn't for the pane status lines). --- screen-write.c | 5 ++--- 1 file 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++; -- cgit From f6c54f3f03353c415cfc59a65118f570972d51ff Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 3 Apr 2019 06:43:19 +0000 Subject: Do not load /etc/tmux.conf if given -f. --- cfg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cfg.c b/cfg.c index d8ce40d3..1a7e4375 100644 --- a/cfg.c +++ b/cfg.c @@ -102,7 +102,8 @@ start_cfg(void) cmdq_append(c, cfg_item); } - load_cfg(TMUX_CONF, NULL, NULL, 1); + if (cfg_file == NULL) + load_cfg(TMUX_CONF, NULL, NULL, 1); if (cfg_file == NULL && (home = find_home()) != NULL) { xasprintf(&cfg_file, "%s/.tmux.conf", home); -- cgit