1
0
mirror of https://github.com/tmate-io/tmate-ssh-server.git synced 2020-11-18 19:53:51 -08:00

Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code

This commit is contained in:
Nicholas Marriott 2013-03-12 14:59:27 +00:00
commit 8840f2d629

View File

@ -480,6 +480,10 @@ window_zoom(struct window_pane *wp)
if (!window_pane_visible(wp)) if (!window_pane_visible(wp))
return (-1); return (-1);
if (window_count_panes(w) == 1)
return (-1);
if (w->active != wp) if (w->active != wp)
window_set_active_pane(w, wp); window_set_active_pane(w, wp);