diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2015-02-05 00:14:13 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2015-02-05 00:14:13 +0000 |
commit | 4514bbe8133f9b6a03f35d9c4321d64e48e6cf33 (patch) | |
tree | 0e6b28410e8f7299f337233500090d8976d57375 /mdoc_term.c | |
parent | 9428c0388cfeb9544f5ffec7200f5fbee7da4727 (diff) | |
download | mandoc-4514bbe8133f9b6a03f35d9c4321d64e48e6cf33.tar.gz |
Simplify by deleting the "lastline" member of struct mdoc_node.
Minus one struct member, minus 17 lines of code, no functional change.
Diffstat (limited to 'mdoc_term.c')
-rw-r--r-- | mdoc_term.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/mdoc_term.c b/mdoc_term.c index 73849e31..d101bbb3 100644 --- a/mdoc_term.c +++ b/mdoc_term.c @@ -319,12 +319,9 @@ print_mdoc_node(DECL_ARGS) * invoked in a prior line, revert it to PREKEEP. */ - if (TERMP_KEEP & p->flags) { - if (n->prev ? (n->prev->lastline != n->line) : - (n->parent && n->parent->line != n->line)) { - p->flags &= ~TERMP_KEEP; - p->flags |= TERMP_PREKEEP; - } + if (p->flags & TERMP_KEEP && n->flags & MDOC_LINE) { + p->flags &= ~TERMP_KEEP; + p->flags |= TERMP_PREKEEP; } /* |