aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Rameau <quinq@fifth.space>2015-10-05 23:10:48 +0200
committerChristoph Lohmann <20h@r-36.net>2015-10-06 00:05:04 +0200
commit80fe97f8a66d31945bdddbb9381b2cc54359f48e (patch)
treecf5d21dfb37a1f4927d70f89fc00270444bfeca9
parenta2a60f0a2ce33dbd4ef07aaa4a914391481fa1de (diff)
downloadst-patched-80fe97f8a66d31945bdddbb9381b2cc54359f48e.tar.bz2
st-patched-80fe97f8a66d31945bdddbb9381b2cc54359f48e.tar.xz
st-patched-80fe97f8a66d31945bdddbb9381b2cc54359f48e.zip
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@r-36.net>
-rw-r--r--st.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/st.c b/st.c
index 4ead319..d9f0ba6 100644
--- a/st.c
+++ b/st.c
@@ -3852,7 +3852,8 @@ xdrawcursor(void)
3852 g.u = term.line[term.c.y][term.c.x].u; 3852 g.u = term.line[term.c.y][term.c.x].u;
3853 if (ena_sel && selected(term.c.x, term.c.y)) { 3853 if (ena_sel && selected(term.c.x, term.c.y)) {
3854 drawcol = dc.col[defaultrcs]; 3854 drawcol = dc.col[defaultrcs];
3855 g.mode ^= ATTR_REVERSE; 3855 g.fg = defaultfg;
3856 g.bg = defaultrcs;
3856 } else { 3857 } else {
3857 drawcol = dc.col[defaultcs]; 3858 drawcol = dc.col[defaultcs];
3858 } 3859 }