X-Git-Url: https://git.xinqibao.xyz/st.git/blobdiff_plain/2bd0c23fa7bb42724c75416342d36e00c435f404..bffa6e5cc612dcead2d6ff3803ec72cb69c151bd:/st.c?ds=sidebyside diff --git a/st.c b/st.c index 23ed213..ba44b1c 100644 --- a/st.c +++ b/st.c @@ -2310,7 +2310,7 @@ xdraws(char *s, Glyph base, int x, int y, int charlen, int bytelen) { * Those ranges will not be brightened: * 8 - 15 – bright system colors * 196 - 231 – highest 256 color cube - * 252 - 255 – brightest colors in grescale + * 252 - 255 – brightest colors in greyscale */ font = &dc.bfont; } @@ -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);