st
simple terminal
git clone https://9o.is/git/st.git
commit 5dccbc971af258a53f0155410959a5b9dd049ebf parent b5eb32265a237222249be80da2e14ab9b809b4d8 Author: noname <noname@inventati.org> Date: Wed, 23 Apr 2014 23:12:36 +0400 Use != instead of ^ for logical values. sel.alt is only changed by sel.alt = IS_SET(MODE_ALTSCREEN); Diffstat:
| M | st.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/st.c b/st.c @@ -3457,7 +3457,7 @@ drawregion(int x1, int y1, int x2, int y2) { bool ena_sel = sel.ob.x != -1; long unicodep; - if(sel.alt ^ IS_SET(MODE_ALTSCREEN)) + if(sel.alt != IS_SET(MODE_ALTSCREEN)) ena_sel = 0; if(!(xw.state & WIN_VISIBLE))