diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-20 22:01:07 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-20 22:01:07 +0000 |
commit | dadb413cf60af18400c969fbce89b73db822ff5d (patch) | |
tree | 8e3a6f08ffb0868aeca4258e8e4052592ff99483 /terminal.c | |
parent | ab60996c2162f940bec103c027d4b02dec06a62c (diff) | |
download | mandoc-dadb413cf60af18400c969fbce89b73db822ff5d.tar.gz mandoc-dadb413cf60af18400c969fbce89b73db822ff5d.tar.zst mandoc-dadb413cf60af18400c969fbce89b73db822ff5d.zip |
Removed margin-break comment.
Diffstat (limited to 'terminal.c')
-rw-r--r-- | terminal.c | 23 |
1 files changed, 7 insertions, 16 deletions
@@ -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; } /* |