mirror of
https://github.com/tmux/tmux.git
synced 2026-05-31 06:36:18 +00:00
Another couple of changes.
This commit is contained in:
4
tmux.h
4
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_print_cell(struct layout_cell *, const char *, u_int);
|
||||||
void layout_destroy_cell(struct window *, struct layout_cell *,
|
void layout_destroy_cell(struct window *, struct layout_cell *,
|
||||||
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 *,
|
void layout_resize_layout(struct window *, struct layout_cell *,
|
||||||
enum layout_type, int, int);
|
enum layout_type, int, int);
|
||||||
struct layout_cell *layout_search_by_border(struct layout_cell *, u_int, u_int);
|
struct layout_cell *layout_search_by_border(struct layout_cell *, u_int, u_int);
|
||||||
|
|||||||
2
window.c
2
window.c
@@ -699,6 +699,8 @@ window_zoom(struct window_pane *wp)
|
|||||||
|
|
||||||
if (w->flags & WINDOW_ZOOMED)
|
if (w->flags & WINDOW_ZOOMED)
|
||||||
return (-1);
|
return (-1);
|
||||||
|
if (window_count_panes(w, 1) == 1)
|
||||||
|
return (-1);
|
||||||
|
|
||||||
if (w->active != wp)
|
if (w->active != wp)
|
||||||
window_set_active_pane(w, wp, 1);
|
window_set_active_pane(w, wp, 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user