tFixing a precedence problem. Thanks tridactyla! - st - [fork] customized build… | |
git clone git://src.adamsgaard.dk/st | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 4d37763ee767d0c8bd8425744c3375817967dda3 | |
parent fc2b3669682eaf571fc96762bd3c8e48bccac989 | |
Author: Christoph Lohmann <[email protected]> | |
Date: Tue, 18 Dec 2012 13:00:00 +0100 | |
Fixing a precedence problem. Thanks tridactyla! | |
Diffstat: | |
M README | 1 + | |
M st.c | 4 ++-- | |
2 files changed, 3 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/README b/README | |
t@@ -33,3 +33,4 @@ See the man page for additional details. | |
Credits | |
------- | |
Based on Aurélien APTEL <aurelien dot aptel at gmail dot com> bt source code. | |
+ | |
diff --git a/st.c b/st.c | |
t@@ -2525,11 +2525,11 @@ xdraws(char *s, Glyph base, int x, int y, int charlen,… | |
/* Intelligent cleaning up of the borders. */ | |
if(x == 0) { | |
xclear(0, (y == 0)? 0 : winy, borderpx, | |
- winy + xw.ch + (y == term.row-1)? xw.h : 0); | |
+ winy + xw.ch + ((y == term.row-1)? xw.h : 0)); | |
} | |
if(x + charlen >= term.col-1) { | |
xclear(winx + width, (y == 0)? 0 : winy, xw.w, | |
- (y == term.row-1)? xw.h : (winy + xw.ch)); | |
+ ((y == term.row-1)? xw.h : (winy + xw.ch))); | |
} | |
if(y == 0) | |
xclear(winx, 0, winx + width, borderpx); |