[dev] [st PATCH 1/6] Compute ena_sel as one expression.

From: noname <noname_AT_inventati.org>
Date: Sun, 27 Apr 2014 15:39:29 +0400

---
 st.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/st.c b/st.c
index bd0d3ca..41a3e3c 100644
--- a/st.c
+++ b/st.c
_AT_@ -3441,12 +3441,9 @@ drawregion(int x1, int y1, int x2, int y2) {
 	int ic, ib, x, y, ox, sl;
 	Glyph base, new;
 	char buf[DRAW_BUF_SIZ];
-	bool ena_sel = sel.ob.x != -1;
+	bool ena_sel = sel.ob.x != -1 && sel.alt == IS_SET(MODE_ALTSCREEN);
 	long unicodep;
 
-	if(sel.alt != IS_SET(MODE_ALTSCREEN))
-		ena_sel = 0;
-
 	if(!(xw.state & WIN_VISIBLE))
 		return;
 
-- 
1.8.4
Received on Sun Apr 27 2014 - 13:39:29 CEST

This archive was generated by hypermail 2.3.0 : Sun Apr 27 2014 - 13:48:08 CEST