From bedf8bd4373c48761ae42dbd8635fbc65d1c5cf8 Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 4 Jul 2017 12:26:14 +0000 Subject: Handle 0 size of preview box in caller. --- window-tree.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'window-tree.c') diff --git a/window-tree.c b/window-tree.c index 488a2e6d..2cbb18a7 100644 --- a/window-tree.c +++ b/window-tree.c @@ -422,8 +422,6 @@ window_tree_draw_session(struct session *s, struct screen_write_ctx *ctx, char *label; size_t len; - if (sx == 0) - return; total = winlink_count(&s->windows); memcpy(&gc, &grid_default_cell, sizeof gc); @@ -544,8 +542,6 @@ window_tree_draw_window(struct session *s, struct window *w, char *label; size_t len; - if (sx == 0) - return; total = window_count_panes(w); memcpy(&gc, &grid_default_cell, sizeof gc); -- cgit