]> git.deb.at Git - pkg/abook.git/blobdiff - ui.c
All three are specified in the XSI Curses standard, but if we check for
[pkg/abook.git] / ui.c
diff --git a/ui.c b/ui.c
index 6917f77863768a80180909797f6f6d5dcbb05f5c..1923138da1d45ac9d44637cd6a986bd128a54c76 100644 (file)
--- a/ui.c
+++ b/ui.c
@@ -237,7 +237,7 @@ statusline_addstr(const char *str)
 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;
@@ -245,7 +245,7 @@ statusline_addhlstr(const char *str)
        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);
@@ -253,11 +253,10 @@ statusline_addhlstr(const char *str)
                        }
                        if(*p) {
                                start = p + 1;
-#if 0
+
                                /* show tag markers */
                                wattrset(bottom, A_DIM);
                                mvwaddch(bottom, 1, pos++, *p);
-#endif
                        }
                }