mirror of
https://github.com/tmate-io/tmate.git
synced 2025-02-09 23:09:17 +01:00
Don't zoom windows with one pane, from Romain Francoise.
This commit is contained in:
parent
88b92df849
commit
114d822d27
4
window.c
4
window.c
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user