X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=st.c;h=d9f0ba673b3015ad2b44cd7df917455b51cb5bd6;hb=80fe97f8a66d31945bdddbb9381b2cc54359f48e;hp=4ead319dc0f07cc2dced9a2ba905ed37a22df70b;hpb=52d0e82df723297438339822f2398f83470fbcd4;p=st.git diff --git a/st.c b/st.c index 4ead319..d9f0ba6 100644 --- 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]; }