Commit 80fe97f

Quentin Rameau <quinq@fifth.space>
2015-10-05 17:10:48
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>
1 parent a2a60f0
Changed files (1)
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];
 	}