From 1ab8d58bf7888a3c3a21cfa2264daf04ce7c6320 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 25 Oct 2021 10:27:47 +0530 Subject: [PATCH] Ensure right margin is drawn --- kitty/tab_bar.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kitty/tab_bar.py b/kitty/tab_bar.py index df6a0db5a..ce53e5681 100644 --- a/kitty/tab_bar.py +++ b/kitty/tab_bar.py @@ -503,10 +503,10 @@ class TabBar: blank_rects.append(Border(0, tab_bar.bottom + 1, vw, central.top, bg)) g = self.window_geometry if g.left > 0: - viewport_width = max(4 * cell_width, tab_bar.width - 2 * self.margin_width) blank_rects.append(Border(0, g.top, g.left, g.bottom + 1, bg)) + viewport_width = max(4 * cell_width, tab_bar.width - 2 * self.margin_width) + if g.right - 1 < viewport_width: blank_rects.append(Border(g.right - 1, g.top, viewport_width, g.bottom + 1, bg)) - self.blank_rects = tuple(blank_rects) def layout(self) -> None: