projects
/
suckless
/
st.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc2b366
)
Fixing a precedence problem. Thanks tridactyla!
author
Christoph Lohmann
<20h@r-36.net>
Tue, 18 Dec 2012 12:00:00 +0000
(13:00 +0100)
committer
Christoph Lohmann
<20h@r-36.net>
Tue, 18 Dec 2012 12:00:00 +0000
(13:00 +0100)
README
patch
|
blob
|
history
st.c
patch
|
blob
|
history
diff --git
a/README
b/README
index f6c5d78779939b6c0e0d6b539262f286d9b6d41e..e801c02e873da095d4663df76fbc84105b89d8bb 100644
(file)
--- a/
README
+++ b/
README
@@
-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
index 433f7b46e2b345a700e499d0023ba557bde65568..aa72a438f2bc0b708a3d57b2bcd0b8646c3aad59 100644
(file)
--- 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);