diff options
author | Christoph Lohmann <20h@r-36.net> | 2012-10-06 20:52:22 +0200 |
---|---|---|
committer | Christoph Lohmann <20h@r-36.net> | 2012-10-06 20:52:22 +0200 |
commit | 852db9e9b07a4679786c0de2b1454d91410aa224 (patch) | |
tree | 5f4437ad50ea7e6b8fee315054c839c910205786 | |
parent | a9092bc48b0b9cd4506584a142865582d78a8981 (diff) | |
download | st-patched-852db9e9b07a4679786c0de2b1454d91410aa224.tar.bz2 st-patched-852db9e9b07a4679786c0de2b1454d91410aa224.tar.xz st-patched-852db9e9b07a4679786c0de2b1454d91410aa224.zip |
Fixing a off-by-one error in the new border clearing code.
-rw-r--r-- | st.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2355,7 +2355,7 @@ xdraws(char *s, Glyph base, int x, int y, int charlen, int bytelen) { | |||
2355 | } | 2355 | } |
2356 | if(x + charlen >= term.col-1) { | 2356 | if(x + charlen >= term.col-1) { |
2357 | xclear(winx + width, (y == 0)? 0 : winy, xw.w, | 2357 | xclear(winx + width, (y == 0)? 0 : winy, xw.w, |
2358 | winy + xw.ch + (y == term.row-1)? xw.h : 0); | 2358 | (y == term.row-1)? xw.h : (winy + xw.ch)); |
2359 | } | 2359 | } |
2360 | if(y == 0) | 2360 | if(y == 0) |
2361 | xclear(winx, 0, winx + width, BORDER); | 2361 | xclear(winx, 0, winx + width, BORDER); |