commit - adea4eec23e155cdd58a4df7fbb7ddaba6c9fdfc
commit + ce6d533582c112f8eb9e11bdef5111d44692ec76
blob - 08460bc25e426808b344b2f25e6ba4a1d0646073
blob + 673c032bc3787b04c3d9f06b164008b1a1aa1f13
--- ui.c
+++ ui.c
{
struct tab *tab;
size_t toskip, ots, tabwidth, space, x;
- int current, y, truncated;
+ int current, y, truncated, pair;
const char *title;
char buf[25];
while (strlcat(buf, " ", sizeof(buf)) < sizeof(buf))
/* nop */ ;
}
-
- if (current)
- wattr_on(tabline, tab_face.current, NULL);
- else
- wattr_on(tabline, tab_face.tab, NULL);
+ pair = current ? tab_face.current : tab_face.tab;
+ wattr_on(tabline, pair, NULL);
wprintw(tabline, "%s", buf);
+ wattr_off(tabline, pair, NULL);
+
+ wattr_on(tabline, tab_face.background, NULL);
if (TAILQ_NEXT(tab, tabs) != NULL)
- wprintw(tabline, " ");
-
- if (current)
- wattr_off(tabline, tab_face.current, NULL);
- else
- wattr_off(tabline, tab_face.tab, NULL);
+ wprintw(tabline, "│");
+ wattr_off(tabline, tab_face.background, NULL);
}
wattr_on(tabline, tab_face.background, NULL);