all repos — st @ 17fa1493ee0d8c53c63b3c8d1325ee38fd3192e1

st (suckless terminal) config

Compute ena_sel as one expression.
noname noname@inventati.org
commit

17fa1493ee0d8c53c63b3c8d1325ee38fd3192e1

parent

a8a9e66a7d481c66bd9680ff0670c322bedd7ca7

1 files changed, 1 insertions(+), 4 deletions(-)

jump to
M st.cst.c

@@ -3491,11 +3491,8 @@ 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;