[dev] [st PATCH 3/4] Use != instead of ^ for logical values.

From: noname <noname_AT_inventati.org>
Date: Wed, 23 Apr 2014 23:12:36 +0400

sel.alt is only changed by
        sel.alt = IS_SET(MODE_ALTSCREEN);
---
 st.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/st.c b/st.c
index 07f408c..e61ee68 100644
--- a/st.c
+++ b/st.c
_AT_@ -3449,7 +3449,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))
-- 
1.8.4
Received on Wed Apr 23 2014 - 21:12:36 CEST

This archive was generated by hypermail 2.3.0 : Wed Apr 23 2014 - 21:24:20 CEST