From 3a628527b7e10384bd7b828fc6d7fdf364786c8a Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Fri, 24 Dec 2021 18:07:24 -0700 Subject: [PATCH] gui: fix right width of right status area in fancy tab bar refs: #1180 --- wezterm-gui/src/termwindow/render.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wezterm-gui/src/termwindow/render.rs b/wezterm-gui/src/termwindow/render.rs index 5c3940c02..168131550 100644 --- a/wezterm-gui/src/termwindow/render.rs +++ b/wezterm-gui/src/termwindow/render.rs @@ -735,11 +735,11 @@ impl super::TermWindow { ); let text_bounding_rect = tab_bounding_rect.inflate( - metrics.cell_width.get() as isize / -4, + metrics.cell_width.get() as isize / -2, metrics.cell_height.get() as isize / -4, ); - let desired_width = width.min(text_bounding_rect.width()); + let desired_width = desired_width.min(text_bounding_rect.width()); let text_bounding_rect: Rect = euclid::rect( text_bounding_rect.max_x() - desired_width, text_bounding_rect.min_y(),