Compute ena_sel as one expression.
This commit is contained in:
parent
a8a9e66a7d
commit
17fa1493ee
1 changed files with 1 additions and 4 deletions
5
st.c
5
st.c
|
@ -3491,12 +3491,9 @@ drawregion(int x1, int y1, int x2, int y2) {
|
||||||
int ic, ib, x, y, ox, sl;
|
int ic, ib, x, y, ox, sl;
|
||||||
Glyph base, new;
|
Glyph base, new;
|
||||||
char buf[DRAW_BUF_SIZ];
|
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;
|
long unicodep;
|
||||||
|
|
||||||
if(sel.alt != IS_SET(MODE_ALTSCREEN))
|
|
||||||
ena_sel = 0;
|
|
||||||
|
|
||||||
if(!(xw.state & WIN_VISIBLE))
|
if(!(xw.state & WIN_VISIBLE))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue