Преглед на файлове

Fix the cursor color when over selection.

If we want to show a custom selected cursor color, we must not set the
revert attribute to the drawn glyph.

Signed-off-by: Christoph Lohmann <20h@r-36.net>
Quentin Rameau преди 9 години
родител
ревизия
80fe97f8a6
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      st.c

+ 2 - 1
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];
 	}