From: noname Date: Wed, 23 Apr 2014 19:12:36 +0000 (+0400) Subject: Use != instead of ^ for logical values. X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=1b0b9759dca9739da04f5c8a206b2f8ee5ed8b25;p=st.git Use != instead of ^ for logical values. sel.alt is only changed by sel.alt = IS_SET(MODE_ALTSCREEN); --- diff --git a/st.c b/st.c index 1a2b1dd..ff9bdd8 100644 --- a/st.c +++ b/st.c @@ -3457,7 +3457,7 @@ drawregion(int x1, int y1, int x2, int y2) { bool ena_sel = sel.ob.x != -1; long unicodep; - if(sel.alt ^ IS_SET(MODE_ALTSCREEN)) + if(sel.alt != IS_SET(MODE_ALTSCREEN)) ena_sel = 0; if(!(xw.state & WIN_VISIBLE))