thx to keiss again, fixed the prevoff calculation as well

This commit is contained in:
Anselm R. Garbe 2006-05-19 19:43:31 +02:00
parent 3b01488153
commit 58fa7998b8
1 changed files with 4 additions and 1 deletions

View File

@ -79,7 +79,10 @@ update_offsets()
w = cmdw + 2 * seek;
for(i = curroff; i > 0; i--) {
w += blitz_textwidth(dpy, &draw.font, item.data[i]) + mrect.height;
tw = blitz_textwidth(dpy, &draw.font, item.data[i]);
if(tw > mrect.width / 3)
tw = mrect.width / 3;
w += tw + mrect.height;
if(w > mrect.width)
break;
}