Xinqi Bao's Git
projects
/
st.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
| inline |
side by side
Add bold off SGR
[st.git]
/
x.c
diff --git
a/x.c
b/x.c
index
743b084
..
fbfd350
100644
(file)
--- a/
x.c
+++ b/
x.c
@@
-1285,6
+1285,8
@@
xdrawcursor(void)
xdrawglyph(og, oldx, oldy);
g.u = term.line[term.c.y][term.c.x].u;
+ g.mode |= term.line[term.c.y][term.c.x].mode &
+ (ATTR_BOLD | ATTR_ITALIC | ATTR_UNDERLINE | ATTR_STRUCK);
/*
* Select the right color for the right mode.