X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=st.c;h=a86e0f95d37854ab9c75d7613cd4eab30b33adc3;hb=be2877cd042eaf5d0f7dda102f526357aa577232;hp=627e5666012db9769a693d592ab61e20e890e1e7;hpb=33558ca042357ee7387b7c0ba9574af1106c4037;p=st.git diff --git a/st.c b/st.c index 627e566..a86e0f9 100644 --- a/st.c +++ b/st.c @@ -1826,10 +1826,14 @@ xdrawcursor(void) { xcopy(oldx, oldy, 1, 1); /* draw the new one */ - if(!(term.c.state & CURSOR_HIDE) && (xw.state & WIN_FOCUSED)) { - sl = utf8size(g.c); + if(!(term.c.state & CURSOR_HIDE)) { + if(!(xw.state & WIN_FOCUSED)) + g.bg = DefaultUCS; + if(IS_SET(MODE_REVERSE)) g.mode |= ATTR_REVERSE, g.fg = DefaultCS, g.bg = DefaultFG; + + sl = utf8size(g.c); xdraws(g.c, g, term.c.x, term.c.y, 1, sl); oldx = term.c.x, oldy = term.c.y; }