Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
st.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixing italic bold.
[st.git]
/
st.c
diff --git
a/st.c
b/st.c
index
6424b54
..
f48dab4
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-949,7
+949,7
@@
getsel(void) {
* st.
* FIXME: Fix the computer world.
*/
* st.
* FIXME: Fix the computer world.
*/
- if(y < sel.ne.y && x > 0 && !((gp-1)->mode & ATTR_WRAP))
+ if(y < sel.ne.y && !(x > 0 && (gp-1)->mode & ATTR_WRAP))
*ptr++ = '\n';
/*
*ptr++ = '\n';
/*
@@
-3149,8
+3149,13
@@
xdraws(char *s, Glyph base, int x, int y, int charlen, int bytelen) {
if(BETWEEN(base.fg, 0, 7))
fg = &dc.col[base.fg + 8];
if(BETWEEN(base.fg, 0, 7))
fg = &dc.col[base.fg + 8];
- font = &dc.bfont;
- frcflags = FRC_BOLD;
+ if(base.mode & ATTR_ITALIC) {
+ font = &dc.ibfont;
+ frcflags = FRC_ITALICBOLD;
+ } else {
+ font = &dc.bfont;
+ frcflags = FRC_BOLD;
+ }
}
if(IS_SET(MODE_REVERSE)) {
}
if(IS_SET(MODE_REVERSE)) {