From 1d422dfc3acf3109cb5580f44b65343dc5735ed0 Mon Sep 17 00:00:00 2001 From: 6144 <57264786+6144@users.noreply.github.com> Date: Thu, 5 Mar 2020 16:39:02 +0000 Subject: [PATCH] clean up math calculating width of last tab. --- src/render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/render.c b/src/render.c index 40704f52..529db3b3 100644 --- a/src/render.c +++ b/src/render.c @@ -424,7 +424,7 @@ static void render_con_tabbed(Con *con, Con *child, render_params *p, int i) { /* Since the tab width may be something like 31,6 px per tab, we * let the last tab have all the extra space (0,6 * children). */ if (i == (p->children - 1)) { - child->deco_rect.width += (child->rect.width - (child->deco_rect.x + child->deco_rect.width)); + child->deco_rect.width = child->rect.width - child->deco_rect.x; } if (p->children > 1 || (child->border_style != BS_PIXEL && child->border_style != BS_NONE)) {