diff options
| author | Christoph Lohmann <20h@r-36.net> | 2012-11-03 08:35:32 +0100 |
|---|---|---|
| committer | Christoph Lohmann <20h@r-36.net> | 2012-11-03 08:35:32 +0100 |
| commit | 76a8e5f72b542f230d7248c09efe202a12bc3771 (patch) | |
| tree | 8c877710af05c14d622de3d8c42a3cf47f8497bb /st.c | |
| parent | Fixing an out-of-bound bug in the selection code. Thanks Szabolczs Nagy! (diff) | |
| download | st-76a8e5f72b542f230d7248c09efe202a12bc3771.tar.gz st-76a8e5f72b542f230d7248c09efe202a12bc3771.zip | |
Now italic and bold works.
Diffstat (limited to '')
| -rw-r--r-- | st.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -2423,7 +2423,7 @@ xdraws(char *s, Glyph base, int x, int y, int charlen, int bytelen) { | |||
| 2423 | 2423 | ||
| 2424 | if(base.mode & ATTR_ITALIC) | 2424 | if(base.mode & ATTR_ITALIC) |
| 2425 | font = &dc.ifont; | 2425 | font = &dc.ifont; |
| 2426 | if(base.mode & (ATTR_ITALIC|ATTR_BOLD)) | 2426 | if((base.mode & ATTR_ITALIC) && (base.mode & ATTR_BOLD)) |
| 2427 | font = &dc.ibfont; | 2427 | font = &dc.ibfont; |
| 2428 | 2428 | ||
| 2429 | if(IS_SET(MODE_REVERSE)) { | 2429 | if(IS_SET(MODE_REVERSE)) { |
