pinosaur
/
st.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2bd0c23
)
Fixing a off-by-one error in the new border clearing code.
author
Christoph Lohmann
<20h@r-36.net>
Sat, 6 Oct 2012 18:52:22 +0000
(20:52 +0200)
committer
Christoph Lohmann
<20h@r-36.net>
Sat, 6 Oct 2012 18:52:22 +0000
(20:52 +0200)
st.c
patch
|
blob
|
history
diff --git
a/st.c
b/st.c
index
23ed213
..
16c64b1
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-2355,7
+2355,7
@@
xdraws(char *s, Glyph base, int x, int y, int charlen, int bytelen) {
}
if(x + charlen >= term.col-1) {
xclear(winx + width, (y == 0)? 0 : winy, xw.w,
-
winy + xw.ch + (y == term.row-1)? xw.h : 0
);
+
(y == term.row-1)? xw.h : (winy + xw.ch)
);
}
if(y == 0)
xclear(winx, 0, winx + width, BORDER);