summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--terminal.c21
1 files changed, 6 insertions, 15 deletions
diff --git a/terminal.c b/terminal.c
index dff6609d..770fc80c 100644
--- a/terminal.c
+++ b/terminal.c
@@ -222,21 +222,12 @@ term_flushln(struct termp *p)
for (j = 0; j < (int)p->offset; j++)
putchar(' ');
vis = 0;
- } else if (vis + vsz > bp)
- warnx("word breaks right margin");
-
- /* TODO: hyphenate. */
-
- } else {
- 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. */
+ }
+ } else if (vis && vis + vsz > bp) {
+ putchar('\n');
+ for (j = 0; j < (int)p->rmargin; j++)
+ putchar(' ');
+ vis = p->rmargin - p->offset;
}
/*