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>
This commit is contained in:
Quentin Rameau 2015-10-05 23:10:48 +02:00 committed by Christoph Lohmann
parent a2a60f0a2c
commit 80fe97f8a6

3
st.c
View File

@ -3852,7 +3852,8 @@ xdrawcursor(void)
g.u = term.line[term.c.y][term.c.x].u; g.u = term.line[term.c.y][term.c.x].u;
if (ena_sel && selected(term.c.x, term.c.y)) { if (ena_sel && selected(term.c.x, term.c.y)) {
drawcol = dc.col[defaultrcs]; drawcol = dc.col[defaultrcs];
g.mode ^= ATTR_REVERSE; g.fg = defaultfg;
g.bg = defaultrcs;
} else { } else {
drawcol = dc.col[defaultcs]; drawcol = dc.col[defaultcs];
} }