Browse Source

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>
master
Quentin Rameau 9 years ago
committed by Christoph Lohmann
parent
commit
80fe97f8a6
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      st.c

+ 2
- 1
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];
} }


Loading…
Cancel
Save