From 3f5cf1464beae9b341bc2b6a304f3442c4bb868f Mon Sep 17 00:00:00 2001 From: nicm Date: Sun, 14 Jun 2026 18:59:15 +0000 Subject: [PATCH] Take account of borders when resizing floating panes. --- usr.bin/tmux/layout.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr.bin/tmux/layout.c b/usr.bin/tmux/layout.c index 49aa5d26a13..844b6102108 100644 --- a/usr.bin/tmux/layout.c +++ b/usr.bin/tmux/layout.c @@ -1,4 +1,4 @@ -/* $OpenBSD: layout.c,v 1.66 2026/06/13 20:03:10 nicm Exp $ */ +/* $OpenBSD: layout.c,v 1.67 2026/06/14 18:59:15 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott @@ -698,6 +698,8 @@ layout_resize_floating_pane_to(struct window_pane *wp, enum layout_type type, return; } + if (size >= PANE_MINIMUM + 2) + size -= 2; if (size < PANE_MINIMUM || size > PANE_MAXIMUM) { *cause = xstrdup("size is too big or too small"); return;