瀏覽代碼

Use BETWEEN in tsetchar.

noname 11 年之前
父節點
當前提交
df1810dd8f
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      st.c

+ 1 - 2
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];
 		}
 	}