diff options
author | noname | 2014-04-22 21:59:39 +0400 |
---|---|---|
committer | Roberto E. Vargas Caballero | 2014-04-23 15:39:03 +0200 |
commit | df1810dd8fcb7a14f4cd2ff2ec3ce8780591f87f (patch) | |
tree | bb9aca408b4348ceaa60287ab0388952e70a72b8 | |
parent | ed855ea432156cea5ca3c6c942392f97d4c3ab1d (diff) | |
download | st-df1810dd8fcb7a14f4cd2ff2ec3ce8780591f87f.tar.gz st-df1810dd8fcb7a14f4cd2ff2ec3ce8780591f87f.tar.xz st-df1810dd8fcb7a14f4cd2ff2ec3ce8780591f87f.zip |
Use BETWEEN in tsetchar.
-rw-r--r-- | st.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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]; } } |