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

4
tmux.h
View File

@@ -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);

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);