st

simple terminal

git clone https://9o.is/git/st.git

commit 5b30245cb72a1efd0a165f7a2a1daffb770be898
parent c2f254ca5c8a424557d37813855d429ef6c4bb0a
Author: Quentin Rameau <quinq@fifth.space>
Date:   Mon,  5 Oct 2015 23:10:48 +0200

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>

Diffstat:
Mst.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/st.c b/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]; }