iFix the cursor color when over selection. - st - Simple Terminal Err gopher.r-36.net 70 i Err gopher.r-36.net 70 1Log /scm/st//log.gph gopher.r-36.net 70 1Files /scm/st//files.gph gopher.r-36.net 70 1Refs /scm/st//refs.gph gopher.r-36.net 70 1README /scm/st//file/README.gph gopher.r-36.net 70 1LICENSE /scm/st//file/LICENSE.gph gopher.r-36.net 70 i--- Err gopher.r-36.net 70 1commit 80fe97f8a66d31945bdddbb9381b2cc54359f48e /scm/st//commit/80fe97f8a66d31945bdddbb9381b2cc54359f48e.gph gopher.r-36.net 70 1parent a2a60f0a2ce33dbd4ef07aaa4a914391481fa1de /scm/st//commit/a2a60f0a2ce33dbd4ef07aaa4a914391481fa1de.gph gopher.r-36.net 70 hAuthor: Quentin Rameau URL:mailto:quinq@fifth.space gopher.r-36.net 70 iDate: Mon, 5 Oct 2015 23:10:48 +0200 Err gopher.r-36.net 70 i Err gopher.r-36.net 70 iFix the cursor color when over selection. Err gopher.r-36.net 70 i Err gopher.r-36.net 70 iIf we want to show a custom selected cursor color, we must not set the Err gopher.r-36.net 70 irevert attribute to the drawn glyph. Err gopher.r-36.net 70 i Err gopher.r-36.net 70 iSigned-off-by: Christoph Lohmann <20h@r-36.net> Err gopher.r-36.net 70 i Err gopher.r-36.net 70 iDiffstat: Err gopher.r-36.net 70 i st.c | 3 ++- Err gopher.r-36.net 70 i Err gopher.r-36.net 70 i1 file changed, 2 insertions(+), 1 deletion(-) Err gopher.r-36.net 70 i--- Err gopher.r-36.net 70 1diff --git a/st.c b/st.c /scm/st//file/st.c.gph gopher.r-36.net 70 i@@ -3852,7 +3852,8 @@ xdrawcursor(void) Err gopher.r-36.net 70 i g.u = term.line[term.c.y][term.c.x].u; Err gopher.r-36.net 70 i if (ena_sel && selected(term.c.x, term.c.y)) { Err gopher.r-36.net 70 i drawcol = dc.col[defaultrcs]; Err gopher.r-36.net 70 i- g.mode ^= ATTR_REVERSE; Err gopher.r-36.net 70 i+ g.fg = defaultfg; Err gopher.r-36.net 70 i+ g.bg = defaultrcs; Err gopher.r-36.net 70 i } else { Err gopher.r-36.net 70 i drawcol = dc.col[defaultcs]; Err gopher.r-36.net 70 i } Err gopher.r-36.net 70 .