summaryrefslogtreecommitdiffstatshomepage
path: root/terminal.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-20 22:01:07 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-20 22:01:07 +0000
commitdadb413cf60af18400c969fbce89b73db822ff5d (patch)
tree8e3a6f08ffb0868aeca4258e8e4052592ff99483 /terminal.c
parentab60996c2162f940bec103c027d4b02dec06a62c (diff)
downloadmandoc-dadb413cf60af18400c969fbce89b73db822ff5d.tar.gz
mandoc-dadb413cf60af18400c969fbce89b73db822ff5d.tar.zst
mandoc-dadb413cf60af18400c969fbce89b73db822ff5d.zip
Removed margin-break comment.
Diffstat (limited to 'terminal.c')
-rw-r--r--terminal.c23
1 files changed, 7 insertions, 16 deletions
diff --git a/terminal.c b/terminal.c
index 239c7d7e..d7c3c41a 100644
--- a/terminal.c
+++ b/terminal.c
@@ -1,4 +1,4 @@
-/* $Id: terminal.c,v 1.3 2009/03/20 15:14:01 kristaps Exp $ */
+/* $Id: terminal.c,v 1.4 2009/03/20 22:01:07 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@openbsd.org>
*
@@ -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;
}
/*