mirror of
https://github.com/tmux/tmux.git
synced 2026-06-22 15:27:46 +00:00
Skip floating cells when moving to previous cell for resize of tiled cells.
This commit is contained in:
6
layout.c
6
layout.c
@@ -743,6 +743,7 @@ layout_resize_floating_pane(struct window_pane *wp, enum layout_type type,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Resize a layout cell. */
|
||||||
void
|
void
|
||||||
layout_resize_layout(struct window *w, struct layout_cell *lc,
|
layout_resize_layout(struct window *w, struct layout_cell *lc,
|
||||||
enum layout_type type, int change, int opposite)
|
enum layout_type type, int change, int opposite)
|
||||||
@@ -788,8 +789,11 @@ layout_resize_pane(struct window_pane *wp, enum layout_type type, int change,
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
/* If this is the last cell, move back one. */
|
/* If this is the last cell, move back one. */
|
||||||
if (lc == TAILQ_LAST(&lcparent->cells, layout_cells))
|
if (lc == TAILQ_LAST(&lcparent->cells, layout_cells)) {
|
||||||
|
do
|
||||||
lc = TAILQ_PREV(lc, layout_cells, entry);
|
lc = TAILQ_PREV(lc, layout_cells, entry);
|
||||||
|
while (lc->flags & LAYOUT_CELL_FLOATING);
|
||||||
|
}
|
||||||
|
|
||||||
layout_resize_layout(wp->window, lc, type, change, opposite);
|
layout_resize_layout(wp->window, lc, type, change, opposite);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user