1
0
mirror of https://github.com/openbsd/src.git synced 2026-06-18 07:13:36 +02:00

Take account of borders when resizing floating panes.

This commit is contained in:
nicm
2026-06-14 18:59:15 +00:00
parent 3dc2c2828b
commit 3f5cf1464b
+3 -1
View File
@@ -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 <nicholas.marriott@gmail.com>
@@ -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;