X-Git-Url: https://jasonwoof.com/gitweb/?p=st.git;a=blobdiff_plain;f=st.c;h=6f3831156ae6ecf18c6b858853b7e548144060b1;hp=068fbb3469bd6c11aea544c57516a5d00e7509fe;hb=b29cf7c0c7bab18dbb15025eb8587d7fdc4ccf26;hpb=9573f5cbf0dde8c6ab08175ad3abe4fe465ef9fe diff --git a/st.c b/st.c index 068fbb3..6f38311 100644 --- a/st.c +++ b/st.c @@ -3506,9 +3506,9 @@ xdrawcursor(void) { if(xw.state & WIN_FOCUSED) { if(IS_SET(MODE_REVERSE)) { g.mode |= ATTR_REVERSE; - g.fg = defaultcs; - g.bg = defaultfg; } + g.fg = term.line[term.c.y][curx].bg; + g.bg = term.line[term.c.y][curx].fg; sl = utf8len(g.c); width = (term.line[term.c.y][curx].mode & ATTR_WIDE)\