From a5848151e0136f8439c72088ac759f62b5a584d7 Mon Sep 17 00:00:00 2001 From: bea4dev Date: Sun, 2 Nov 2025 16:46:08 +0900 Subject: [PATCH] fix inner_corner --- kitty/decorations.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kitty/decorations.c b/kitty/decorations.c index c0a2bc208..fff82bdb3 100644 --- a/kitty/decorations.c +++ b/kitty/decorations.c @@ -890,7 +890,9 @@ inner_corner(Canvas *self, uint level, Corner corner) { uint vthick = thickness(self, level, true) / 2; uint x1 = 0, x2 = self->width, y1 = 0, y2 = self->height; int xd = 1, yd = 1; if (corner & LEFT_EDGE) { - x2 = minus(self->width / 2 + vthick + 1, hgap); xd = -1; + xd = -1; + Range vlinelimit = vline_limits(self, self->width / 2 + (xd * hgap), level); + x2 = vlinelimit.end; } else x1 = minus(self->width / 2 + hgap, vthick); if (corner & TOP_EDGE) { y2 = minus(self->height / 2, vgap); yd = -1;