소스 검색

Fix the cursor colors selection

Signed-off-by: Christoph Lohmann <20h@r-36.net>
Quentin Rameau 9 년 전
부모
커밋
293f573efd
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      st.c

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