diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2013-03-25 11:39:12 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2013-03-25 11:39:12 +0000 |
commit | fefd2f6e3e0186cbb86e23043fd08fd2384c2978 (patch) | |
tree | 724b1f69fab6eeec1c79b53917d087311ddaaa41 /usr.bin/tmux/window.c | |
parent | 55bf2d7c5e07f22df7a33b0ec44bd7b327b67968 (diff) |
Don't zoom windows with one pane, from Romain Francoise.
Diffstat (limited to 'usr.bin/tmux/window.c')
-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); |