summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Lohmann2012-11-03 08:35:32 +0100
committerChristoph Lohmann2012-11-03 08:35:32 +0100
commit76a8e5f72b542f230d7248c09efe202a12bc3771 (patch)
tree8c877710af05c14d622de3d8c42a3cf47f8497bb
parentabe85c0e997ed1882c69bde511f7e2746f68d9ab (diff)
downloadst-76a8e5f72b542f230d7248c09efe202a12bc3771.tar.gz
st-76a8e5f72b542f230d7248c09efe202a12bc3771.tar.xz
st-76a8e5f72b542f230d7248c09efe202a12bc3771.zip
Now italic and bold works.
-rw-r--r--st.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/st.c b/st.c
index d7a0fed..bfbe799 100644
--- a/st.c
+++ b/st.c
@@ -2423,7 +2423,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_BOLD))
+ if((base.mode & ATTR_ITALIC) && (base.mode & ATTR_BOLD))
font = &dc.ibfont;
if(IS_SET(MODE_REVERSE)) {