all repos — st @ df1810dd8fcb7a14f4cd2ff2ec3ce8780591f87f

st (suckless terminal) config

Use BETWEEN in tsetchar.
noname noname@inventati.org
commit

df1810dd8fcb7a14f4cd2ff2ec3ce8780591f87f

parent

ed855ea432156cea5ca3c6c942392f97d4c3ab1d

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

jump to
M st.cst.c

@@ -1544,8 +1544,7 @@ /*

* The table is proudly stolen from rxvt. */ if(attr->mode & ATTR_GFX) { - if(c[0] >= 0x41 && c[0] <= 0x7e - && vt100_0[c[0] - 0x41]) { + if(BETWEEN(c[0], 0x41, 0x7e) && vt100_0[c[0] - 0x41]) { c = vt100_0[c[0] - 0x41]; } }