From 4264889e9a1d65106c1eee0f10a23fc4c82b68c1 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 2 Mar 2026 11:22:23 +0530 Subject: [PATCH] Fix border marking in tall/fat layout --- kitty/layout/tall.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kitty/layout/tall.py b/kitty/layout/tall.py index 7a738749c..95e8e1045 100644 --- a/kitty/layout/tall.py +++ b/kitty/layout/tall.py @@ -367,8 +367,9 @@ class Tall(Layout): yl.content_pos + ((yl.content_size + yl.space_after) if mirrored else (bw - yl.space_before)), ) wid = wg.active_window_id - perp_borders.append(BorderLine(e1, color, wid)) - perp_borders.append(BorderLine(e2, color, wid)) + mult = 1 if mirrored else -1 + perp_borders.append(BorderLine(e1, color, -wid)) + perp_borders.append(BorderLine(e2, color, mult*wid)) perp_borders.append(BorderLine(e3, color, wid)) mirrored = self.layout_opts.mirrored