Xinqi Bao's Git
projects
/
st.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
| inline |
side by side
Fix the cursor color when over selection.
[st.git]
/
st.c
diff --git
a/st.c
b/st.c
index
4ead319
..
d9f0ba6
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-3852,7
+3852,8
@@
xdrawcursor(void)
g.u = term.line[term.c.y][term.c.x].u;
if (ena_sel && selected(term.c.x, term.c.y)) {
drawcol = dc.col[defaultrcs];
- g.mode ^= ATTR_REVERSE;
+ g.fg = defaultfg;
+ g.bg = defaultrcs;
} else {
drawcol = dc.col[defaultcs];
}