diff options
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/tmux/window.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/tmux/window.c b/usr.bin/tmux/window.c index 8093ba8c5e6..0c948dd20ea 100644 --- a/usr.bin/tmux/window.c +++ b/usr.bin/tmux/window.c @@ -1,4 +1,4 @@ -/* $OpenBSD: window.c,v 1.93 2013/03/24 09:57:59 nicm Exp $ */ +/* $OpenBSD: window.c,v 1.94 2013/03/25 11:39:11 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -483,6 +483,10 @@ window_zoom(struct window_pane *wp) if (!window_pane_visible(wp)) return (-1); + + if (window_count_panes(w) == 1) + return (-1); + if (w->active != wp) window_set_active_pane(w, wp); |