[hackers] [st] Compute ena_sel as one expression. || noname
commit 17fa1493ee0d8c53c63b3c8d1325ee38fd3192e1
Author: noname <noname_AT_inventati.org>
Date: Sun Apr 27 15:39:29 2014 +0400
Compute ena_sel as one expression.
diff --git a/st.c b/st.c
index 548e0c2..fb206a3 100644
--- a/st.c
+++ b/st.c
_AT_@ -3491,12 +3491,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;
Received on Mon Apr 28 2014 - 18:44:36 CEST
This archive was generated by hypermail 2.3.0
: Mon Apr 28 2014 - 18:48:10 CEST