Browse Source

Fixing a precedence problem. Thanks tridactyla!

master
Christoph Lohmann 12 years ago
parent
commit
4d37763ee7
2 changed files with 3 additions and 2 deletions
  1. +1
    -0
      README
  2. +2
    -2
      st.c

+ 1
- 0
README View File

@ -33,3 +33,4 @@ See the man page for additional details.
Credits Credits
------- -------
Based on Aurélien APTEL <aurelien dot aptel at gmail dot com> bt source code. Based on Aurélien APTEL <aurelien dot aptel at gmail dot com> bt source code.

+ 2
- 2
st.c View File

@ -2525,11 +2525,11 @@ xdraws(char *s, Glyph base, int x, int y, int charlen, int bytelen) {
/* Intelligent cleaning up of the borders. */ /* Intelligent cleaning up of the borders. */
if(x == 0) { if(x == 0) {
xclear(0, (y == 0)? 0 : winy, borderpx, xclear(0, (y == 0)? 0 : winy, borderpx,
winy + xw.ch + (y == term.row-1)? xw.h : 0);
winy + xw.ch + ((y == term.row-1)? xw.h : 0));
} }
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,
(y == term.row-1)? xw.h : (winy + xw.ch));
((y == term.row-1)? xw.h : (winy + xw.ch)));
} }
if(y == 0) if(y == 0)
xclear(winx, 0, winx + width, borderpx); xclear(winx, 0, winx + width, borderpx);


Loading…
Cancel
Save