summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/window-tree.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2017-07-04 12:26:15 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2017-07-04 12:26:15 +0000
commitadf66ef74a72ccfcabaa123b0435c618e702dc1b (patch)
tree050bd8b00c66c71cdbab6ffd3f5bb471614053c8 /usr.bin/tmux/window-tree.c
parent5cb517100cc666497c774f2d1e3a7807a76de4a2 (diff)
Handle 0 size of preview box in caller.
Diffstat (limited to 'usr.bin/tmux/window-tree.c')
-rw-r--r--usr.bin/tmux/window-tree.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.bin/tmux/window-tree.c b/usr.bin/tmux/window-tree.c
index 3c4958014df..07f3545707e 100644
--- a/usr.bin/tmux/window-tree.c
+++ b/usr.bin/tmux/window-tree.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: window-tree.c,v 1.9 2017/07/03 22:48:02 nicm Exp $ */
+/* $OpenBSD: window-tree.c,v 1.10 2017/07/04 12:26:14 nicm Exp $ */
/*
* Copyright (c) 2017 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -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);