st

simple terminal

git clone https://9o.is/git/st.git

commit fd57c23ae8cc4fb6ba3465e53dfe83a9e0c16507
parent 6b00b5e9a6adc560528922a7348cc98c798bedc2
Author: noname <noname@inventati.org>
Date:   Sun, 27 Apr 2014 15:39:29 +0400

Compute ena_sel as one expression.

Diffstat:
Mst.c | 5+----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git 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;