X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=st.c;h=16c64b1cbbdfebb91660f9f838a8ee345c47a794;hb=b16b5d77d31c4c6b2577ab0986e85b43baaf834a;hp=23ed213a10caeec623d65202cfdc4f48d6644e85;hpb=2bd0c23fa7bb42724c75416342d36e00c435f404;p=st.git diff --git a/st.c b/st.c index 23ed213..16c64b1 100644 --- 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);