mirror of
https://github.com/tmux/tmux.git
synced 2026-03-26 13:16:37 +00:00
Fix next-layout to ignore floating panes.
This commit is contained in:
@@ -387,7 +387,7 @@ window_tree_build(void *modedata, struct sort_criteria *sort_crit,
|
||||
*tag = (uint64_t)data->fs.wl;
|
||||
break;
|
||||
case WINDOW_TREE_PANE:
|
||||
if (window_count_panes(data->fs.wl->window) == 1)
|
||||
if (window_count_panes(data->fs.wl->window, 1) == 1)
|
||||
*tag = (uint64_t)data->fs.wl;
|
||||
else
|
||||
*tag = (uint64_t)data->fs.wp;
|
||||
@@ -566,7 +566,7 @@ window_tree_draw_window(struct window_tree_modedata *data, struct session *s,
|
||||
int colour, active_colour, left, right;
|
||||
char *label;
|
||||
|
||||
total = window_count_panes(w);
|
||||
total = window_count_panes(w, 1);
|
||||
|
||||
memcpy(&gc, &grid_default_cell, sizeof gc);
|
||||
colour = options_get_number(oo, "display-panes-colour");
|
||||
|
||||
Reference in New Issue
Block a user