pinosaur
/
st.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed855ea
)
Use BETWEEN in tsetchar.
author
noname
<noname@inventati.org>
Tue, 22 Apr 2014 17:59:39 +0000
(21:59 +0400)
committer
Roberto E. Vargas Caballero
<k0ga@shike2.com>
Wed, 23 Apr 2014 13:39:03 +0000
(15:39 +0200)
st.c
patch
|
blob
|
history
diff --git
a/st.c
b/st.c
index
b8bf84b
..
bb3e687
100644
(file)
--- 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];
}
}