Zooming has no visible effect if the window has only one pane (other than
adding a window flag), so we might as well do nothing at all.
diff --git a/window.c b/window.c
index fc06e87..2be51e9 100644
--- a/window.c
+++ b/window.c
@@ -480,6 +480,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);
------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
tmux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-users