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>
dev
Quentin Rameau 2015-10-05 23:10:48 +02:00 committed by Christoph Lohmann
parent a2a60f0a2c
commit 80fe97f8a6
1 changed files with 2 additions and 1 deletions

3
st.c
View File

@ -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];
}