[hackers] [st] Use BETWEEN in tsetchar. || noname

From: <git_AT_suckless.org>
Date: Wed, 23 Apr 2014 15:39:54 +0200

commit df1810dd8fcb7a14f4cd2ff2ec3ce8780591f87f
Author: noname <noname_AT_inventati.org>
Date: Tue Apr 22 21:59:39 2014 +0400

    Use BETWEEN in tsetchar.

diff --git a/st.c b/st.c
index b8bf84b..bb3e687 100644
--- a/st.c
+++ b/st.c
_AT_@ -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];
                 }
         }
Received on Wed Apr 23 2014 - 15:39:54 CEST

This archive was generated by hypermail 2.3.0 : Wed Apr 23 2014 - 15:48:11 CEST