diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-06-04 18:50:35 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-06-04 18:50:35 +0000 |
commit | ab795e726e781905db61f736dacb3fbb0e35a301 (patch) | |
tree | 00d8e7751848ecf740e79624193cbb0809dff465 /man_term.c | |
parent | d019f1f6d4b986db56f6fa599968bc395d7ce072 (diff) | |
download | mandoc-ab795e726e781905db61f736dacb3fbb0e35a301.tar.gz mandoc-ab795e726e781905db61f736dacb3fbb0e35a301.tar.zst mandoc-ab795e726e781905db61f736dacb3fbb0e35a301.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 'man_term.c')
-rw-r--r-- | man_term.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: man_term.c,v 1.200 2017/05/09 14:10:01 schwarze Exp $ */ +/* $Id: man_term.c,v 1.201 2017/06/04 18:50:35 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2015, 2017 Ingo Schwarze <schwarze@openbsd.org> @@ -141,7 +141,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"); |