mirror of
https://github.com/tmux/tmux.git
synced 2024-11-05 10:28:48 +00:00
Don't zoom windows with one pane, from Romain Francoise.
This commit is contained in:
parent
543420ccd2
commit
8aa40ec1c7
4
window.c
4
window.c
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user