From f3898d664b80aba4b3e4c8e5713a56496e738e0f Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 19 May 2026 13:30:01 +0100 Subject: [PATCH] Another couple of changes. --- tmux.h | 4 ---- window.c | 2 ++ 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/tmux.h b/tmux.h index 079a30a1..e1cb459b 100644 --- a/tmux.h +++ b/tmux.h @@ -3499,10 +3499,6 @@ void layout_free_cell(struct layout_cell *); void layout_print_cell(struct layout_cell *, const char *, u_int); void layout_destroy_cell(struct window *, struct layout_cell *, struct layout_cell **); -void layout_minimise_cell(struct window *, struct layout_cell *); -void layout_unminimise_cell(struct window *, struct layout_cell *); -void layout_redistribute_cells(struct window *, struct layout_cell *, - enum layout_type); void layout_resize_layout(struct window *, struct layout_cell *, enum layout_type, int, int); struct layout_cell *layout_search_by_border(struct layout_cell *, u_int, u_int); diff --git a/window.c b/window.c index 2d9cfad1..bf0d90f1 100644 --- a/window.c +++ b/window.c @@ -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);