aboutsummaryrefslogtreecommitdiffstats
path: root/st.c
diff options
context:
space:
mode:
authorChristoph Lohmann <20h@r-36.net>2012-12-18 13:00:00 +0100
committerChristoph Lohmann <20h@r-36.net>2012-12-18 13:00:00 +0100
commit4d37763ee767d0c8bd8425744c3375817967dda3 (patch)
tree6199adba874991be4b3f6c2156c999974806bdc9 /st.c
parentfc2b3669682eaf571fc96762bd3c8e48bccac989 (diff)
downloadst-4d37763ee767d0c8bd8425744c3375817967dda3.tar.gz
Fixing a precedence problem. Thanks tridactyla!
Diffstat (limited to 'st.c')
-rw-r--r--st.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/st.c b/st.c
index 433f7b4..aa72a43 100644
--- a/st.c
+++ b/st.c
@@ -2525,11 +2525,11 @@ xdraws(char *s, Glyph base, int x, int y, int charlen, int bytelen) {
/* 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);
remember that computers suck.