pinosaur
/
st.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8a9e66
)
Compute ena_sel as one expression.
author
noname
<noname@inventati.org>
Sun, 27 Apr 2014 11:39:29 +0000
(15:39 +0400)
committer
Roberto E. Vargas Caballero
<k0ga@shike2.com>
Mon, 28 Apr 2014 16:38:06 +0000
(18:38 +0200)
st.c
patch
|
blob
|
history
diff --git
a/st.c
b/st.c
index
548e0c2
..
fb206a3
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-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;