Another couple of changes.

This commit is contained in:
Nicholas Marriott
2026-05-19 13:30:01 +01:00
parent f4c8461ec4
commit f3898d664b
2 changed files with 2 additions and 4 deletions

View File

@@ -699,6 +699,8 @@ window_zoom(struct window_pane *wp)
if (w->flags & WINDOW_ZOOMED)
return (-1);
if (window_count_panes(w, 1) == 1)
return (-1);
if (w->active != wp)
window_set_active_pane(w, wp, 1);