Fixing the italic-bold font check. Thanks nsz.
authorChristoph Lohmann <20h@r-36.net>
Fri, 2 Nov 2012 22:19:56 +0000 (23:19 +0100)
committerChristoph Lohmann <20h@r-36.net>
Fri, 2 Nov 2012 22:19:56 +0000 (23:19 +0100)
st.c

diff --git a/st.c b/st.c
index 8e0df08..8ef1346 100644 (file)
--- a/st.c
+++ b/st.c
@@ -2408,7 +2408,7 @@ xdraws(char *s, Glyph base, int x, int y, int charlen, int bytelen) {
 
        if(base.mode & ATTR_ITALIC)
                font = &dc.ifont;
-       if(base.mode & (ATTR_ITALIC|ATTR_ITALIC))
+       if(base.mode & (ATTR_ITALIC|ATTR_BOLD))
                font = &dc.ibfont;
 
        if(IS_SET(MODE_REVERSE)) {