]> git.deb.at Git - pkg/abook.git/commitdiff
All three are specified in the XSI Curses standard, but if we check for
authorCedric Duval <cedricduval@free.fr>
Tue, 27 Sep 2005 16:50:04 +0000 (16:50 +0000)
committerCedric Duval <cedricduval@free.fr>
Tue, 27 Sep 2005 16:50:04 +0000 (16:50 +0000)
A_BOLD and A_NORMAL, it doesn't hurt to also check for A_DIM.

ui.c

diff --git a/ui.c b/ui.c
index 5603d4cc0e433ee61b07efda47277840c5fa1ff4..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;