[hackers] [st] Fix the cursor color when over selection. || Quentin Rameau
commit 80fe97f8a66d31945bdddbb9381b2cc54359f48e
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Mon Oct 5 23:10:48 2015 +0200
Commit: Christoph Lohmann <20h_AT_r-36.net>
CommitDate: Tue Oct 6 00:05:04 2015 +0200
Fix the cursor color when over selection.
If we want to show a custom selected cursor color, we must not set the
revert attribute to the drawn glyph.
Signed-off-by: Christoph Lohmann <20h_AT_r-36.net>
diff --git a/st.c b/st.c
index 4ead319..d9f0ba6 100644
--- a/st.c
+++ b/st.c
_AT_@ -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];
}
Received on Tue Oct 06 2015 - 00:05:49 CEST
This archive was generated by hypermail 2.3.0
: Tue Oct 06 2015 - 00:12:30 CEST