Use != instead of ^ for logical values.

sel.alt is only changed by
	sel.alt = IS_SET(MODE_ALTSCREEN);
This commit is contained in:
noname 2014-04-23 23:12:36 +04:00 committed by Roberto E. Vargas Caballero
parent 99d2d6007a
commit 1b0b9759dc

2
st.c
View file

@ -3457,7 +3457,7 @@ drawregion(int x1, int y1, int x2, int y2) {
bool ena_sel = sel.ob.x != -1; bool ena_sel = sel.ob.x != -1;
long unicodep; long unicodep;
if(sel.alt ^ IS_SET(MODE_ALTSCREEN)) if(sel.alt != IS_SET(MODE_ALTSCREEN))
ena_sel = 0; ena_sel = 0;
if(!(xw.state & WIN_VISIBLE)) if(!(xw.state & WIN_VISIBLE))