From d23a2b7e9717a41bd2c863f38c0bac056ba03a4f Mon Sep 17 00:00:00 2001 From: nicm Date: Sat, 13 Jun 2026 20:03:10 +0000 Subject: [PATCH] Skip floating cells when moving to previous cell for resize of tiled cells. --- layout.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/layout.c b/layout.c index 1cdab6cb..a91b5cb5 100644 --- a/layout.c +++ b/layout.c @@ -743,6 +743,7 @@ layout_resize_floating_pane(struct window_pane *wp, enum layout_type type, } } +/* Resize a layout cell. */ void layout_resize_layout(struct window *w, struct layout_cell *lc, 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; /* If this is the last cell, move back one. */ - if (lc == TAILQ_LAST(&lcparent->cells, layout_cells)) - lc = TAILQ_PREV(lc, layout_cells, entry); + if (lc == TAILQ_LAST(&lcparent->cells, layout_cells)) { + do + lc = TAILQ_PREV(lc, layout_cells, entry); + while (lc->flags & LAYOUT_CELL_FLOATING); + } layout_resize_layout(wp->window, lc, type, change, opposite); }