version 1.3, 2009/03/20 15:14:01 |
version 1.4, 2009/03/20 22:01:07 |
Line 222 term_flushln(struct termp *p) |
|
Line 222 term_flushln(struct termp *p) |
|
for (j = 0; j < (int)p->offset; j++) |
for (j = 0; j < (int)p->offset; j++) |
putchar(' '); |
putchar(' '); |
vis = 0; |
vis = 0; |
} else if (vis + vsz > bp) |
} |
warnx("word breaks right margin"); |
} else if (vis && vis + vsz > bp) { |
|
putchar('\n'); |
/* TODO: hyphenate. */ |
for (j = 0; j < (int)p->rmargin; j++) |
|
putchar(' '); |
} else { |
vis = p->rmargin - p->offset; |
if (vis && vis + vsz > bp) { |
|
putchar('\n'); |
|
for (j = 0; j < (int)p->rmargin; j++) |
|
putchar(' '); |
|
vis = p->rmargin - p->offset; |
|
} else if (vis + vsz > bp) |
|
warnx("word breaks right margin"); |
|
|
|
/* TODO: hyphenate. */ |
|
} |
} |
|
|
/* |
/* |