Use BETWEEN in tsetchar.
This commit is contained in:
		
							parent
							
								
									ed855ea432
								
							
						
					
					
						commit
						df1810dd8f
					
				
							
								
								
									
										3
									
								
								st.c
								
								
								
								
							
							
						
						
									
										3
									
								
								st.c
								
								
								
								
							| 
						 | 
					@ -1544,8 +1544,7 @@ tsetchar(char *c, Glyph *attr, int x, int y) {
 | 
				
			||||||
	 * The table is proudly stolen from rxvt.
 | 
						 * The table is proudly stolen from rxvt.
 | 
				
			||||||
	 */
 | 
						 */
 | 
				
			||||||
	if(attr->mode & ATTR_GFX) {
 | 
						if(attr->mode & ATTR_GFX) {
 | 
				
			||||||
		if(c[0] >= 0x41 && c[0] <= 0x7e
 | 
							if(BETWEEN(c[0], 0x41, 0x7e) && vt100_0[c[0] - 0x41]) {
 | 
				
			||||||
				&& vt100_0[c[0] - 0x41]) {
 | 
					 | 
				
			||||||
			c = vt100_0[c[0] - 0x41];
 | 
								c = vt100_0[c[0] - 0x41];
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue