static void
statusline_addhlstr(const char *str)
{
-#if defined(A_BOLD) && defined(A_NORMAL)
+#if defined(A_BOLD) && defined(A_NORMAL) && defined(A_DIM)
const char *p = str, *start = str;
char *tmp;
int pos = 0;
while(1) {
if(!*p || strchr("<>", *p)) {
if(p - start > 0) {
- wattrset(bottom, (*p == '>') ? A_UNDERLINE : A_NORMAL);
+ wattrset(bottom, (*p == '>') ? A_BOLD : A_NORMAL);
tmp = xstrndup(start, p - start);
mvwaddstr(bottom, 1, pos, tmp);
free(tmp);
}
if(*p) {
start = p + 1;
-#if 0
+
/* show tag markers */
wattrset(bottom, A_DIM);
mvwaddch(bottom, 1, pos++, *p);
-#endif
}
}