From b29cf7c0c7bab18dbb15025eb8587d7fdc4ccf26 Mon Sep 17 00:00:00 2001 From: Jason Woofenden Date: Wed, 10 Dec 2014 13:47:19 -0500 Subject: [PATCH] cursor swaps fg and bg colors --- st.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)\ -- 1.7.10.4