diff options
author | 2017-06-04 18:48:09 +0000 | |
---|---|---|
committer | 2017-06-04 18:48:09 +0000 | |
commit | 771c54bc04c60501eb17b3f9edc9328b55b4d731 (patch) | |
tree | 2cc1f9e453b2545b56476cdc6c5be123fa37abea /usr.bin/mandoc/man_term.c | |
parent | Create gap.* with umask 007 instead of 077 to make kernel builds after (diff) | |
download | wireguard-openbsd-771c54bc04c60501eb17b3f9edc9328b55b4d731.tar.xz wireguard-openbsd-771c54bc04c60501eb17b3f9edc9328b55b4d731.zip |
Make term_flushln() simpler and more robust:
Eliminate the "overstep" state variable.
The information is already contained in "viscol".
Minus 60 lines of code, no functional change intended.
Diffstat (limited to 'usr.bin/mandoc/man_term.c')
-rw-r--r-- | usr.bin/mandoc/man_term.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/mandoc/man_term.c b/usr.bin/mandoc/man_term.c index fe21148ea0e..fa7d5159bd0 100644 --- a/usr.bin/mandoc/man_term.c +++ b/usr.bin/mandoc/man_term.c @@ -1,4 +1,4 @@ -/* $OpenBSD: man_term.c,v 1.153 2017/05/09 14:09:37 schwarze Exp $ */ +/* $OpenBSD: man_term.c,v 1.154 2017/06/04 18:48:09 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2015, 2017 Ingo Schwarze <schwarze@openbsd.org> @@ -139,7 +139,6 @@ terminal_man(void *arg, const struct roff_man *man) size_t save_defindent; p = (struct termp *)arg; - p->overstep = 0; p->rmargin = p->maxrmargin = p->defrmargin; term_tab_set(p, NULL); term_tab_set(p, "T"); |