mirror of
https://github.com/LukeSmithxyz/st.git
synced 2024-11-22 15:25:58 +01:00
Fixing a off-by-one error in the new border clearing code.
This commit is contained in:
parent
2bd0c23fa7
commit
b16b5d77d3
1 changed files with 1 additions and 1 deletions
2
st.c
2
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) {
|
if(x + charlen >= term.col-1) {
|
||||||
xclear(winx + width, (y == 0)? 0 : winy, xw.w,
|
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)
|
if(y == 0)
|
||||||
xclear(winx, 0, winx + width, BORDER);
|
xclear(winx, 0, winx + width, BORDER);
|
||||||
|
|
Loading…
Reference in a new issue