Add pane-border-lines none like popups (-B to new-pane).

This commit is contained in:
nicm
2026-06-15 17:34:25 +00:00
parent bb750b07bc
commit b86bd1fcd0
8 changed files with 79 additions and 29 deletions

View File

@@ -712,7 +712,8 @@ layout_resize_floating_pane_to(struct window_pane *wp, enum layout_type type,
return;
}
if (size >= PANE_MINIMUM + 2)
if (window_pane_get_pane_lines(wp) != PANE_LINES_NONE &&
size >= PANE_MINIMUM + 2)
size -= 2;
if (size < PANE_MINIMUM || size > PANE_MAXIMUM) {
*cause = xstrdup("size is too big or too small");