Oops, forgot to reset counters for each line when calculating wrap.

This commit is contained in:
2008-07-26 22:25:26 +00:00
parent 6531d859ba
commit 6872ff71d5

View File

@@ -737,11 +737,12 @@ static void wrap_offset(SpaceText *st, TextLine *linein, int cursin, int *offl,
}
/* Calculate line offset for earlier lines */
end= max= get_wrap_width(st);
taboffs= start= 0;
max= get_wrap_width(st);
*offl= 0;
while (linep) {
taboffs= start= 0;
end= max;
*offc= 0;
for (i=0; linep->line[i]!='\0'; i++) {
if (i-start+taboffs>=max) {