st
simple terminal
git clone https://9o.is/git/st.git
commit f2e4315d93d4a2f8e8fbdc85d59f0061f38c4770 parent 0c09a795119ae47f3de276b65466e1c131182bd2 Author: noname <noname@inventati.org> Date: Tue, 22 Apr 2014 21:59:39 +0400 Use BETWEEN in tsetchar. Diffstat:
| M | st.c | | | 3 | +-- |
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/st.c b/st.c @@ -1544,8 +1544,7 @@ tsetchar(char *c, Glyph *attr, int x, int y) { * 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]; } }