Don't zoom windows with one pane, from Romain Francoise.

This commit is contained in:
Nicholas Marriott 2013-03-25 11:39:11 +00:00
parent 88b92df849
commit 114d822d27

View File

@ -483,6 +483,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);