summaryrefslogtreecommitdiff
path: root/nncmpp.c
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2023-07-04 06:45:33 +0200
committerPřemysl Eric Janouch <p@janouch.name>2023-07-04 06:45:33 +0200
commit93e0d7027a7672be0cfb4ac7ea2b09f921f31a05 (patch)
treeca1f7120b83c9927adfc6dd4d9fc8d19a2b204be /nncmpp.c
parent5900b0708a42b8b6e3ebef4e08f4ca4c6629bf7b (diff)
downloadnncmpp-93e0d7027a7672be0cfb4ac7ea2b09f921f31a05.tar.gz
nncmpp-93e0d7027a7672be0cfb4ac7ea2b09f921f31a05.tar.xz
nncmpp-93e0d7027a7672be0cfb4ac7ea2b09f921f31a05.zip
Fix build on systems without A_ITALIC
Unfortunately, this font style doesn't work in X11 either in that case.
Diffstat (limited to 'nncmpp.c')
-rw-r--r--nncmpp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/nncmpp.c b/nncmpp.c
index efe3366..db30cd2 100644
--- a/nncmpp.c
+++ b/nncmpp.c
@@ -4194,7 +4194,11 @@ info_tab_format_decode_toggle (char c)
case '\x01':
return A_BOLD;
case '\x02':
+#ifdef A_ITALIC
return A_ITALIC;
+#else
+ return A_UNDERLINE;
+#endif
default:
return 0;
}