Commit 293f573

Quentin Rameau <quinq@fifth.space>
2015-10-06 04:29:44
Fix the cursor colors selection
Signed-off-by: Christoph Lohmann <20h@r-36.net>
1 parent 2ea02c9
Changed files (1)
st.c
@@ -3865,13 +3865,12 @@ xdrawcursor(void)
 			g.fg = defaultcs;
 		}
 	} else {
-		g.fg = defaultfg;
 		if (ena_sel && selected(term.c.x, term.c.y)) {
-			g.bg = defaultcs;
 			drawcol = dc.col[defaultrcs];
+			g.fg = defaultfg;
+			g.bg = defaultrcs;
 		} else {
 			drawcol = dc.col[defaultcs];
-			g.bg = defaultrcs;
 		}
 	}