tFix the cursor color when over selection. - st - [fork] customized build of st… | |
git clone git://src.adamsgaard.dk/st | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 80fe97f8a66d31945bdddbb9381b2cc54359f48e | |
parent a2a60f0a2ce33dbd4ef07aaa4a914391481fa1de | |
Author: Quentin Rameau <[email protected]> | |
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 <[email protected]> | |
Diffstat: | |
M st.c | 3 ++- | |
1 file changed, 2 insertions(+), 1 deletion(-) | |
--- | |
diff --git a/st.c b/st.c | |
t@@ -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]; | |
} |