diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2015-05-01 15:27:54 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2015-05-01 15:27:54 +0000 |
commit | 69c57487163693701fa1106b63c28ab9fb674ede (patch) | |
tree | 27329cfa571d587481264b5c5bcc5642add9a638 /mdoc_macro.c | |
parent | db2bae06bdf2e69756cd08658f1032139adcfaea (diff) | |
download | mandoc-69c57487163693701fa1106b63c28ab9fb674ede.tar.gz |
Minor bug fix: When .Pp rewinds .Nm, rewind the whole block,
not just the body. In some unusual edge cases, this caused
the .Pp to become a sibling of the .Nm body inside the .Nm block.
Diffstat (limited to 'mdoc_macro.c')
-rw-r--r-- | mdoc_macro.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mdoc_macro.c b/mdoc_macro.c index a9e65dc1..5d8d3bfa 100644 --- a/mdoc_macro.c +++ b/mdoc_macro.c @@ -1399,7 +1399,7 @@ in_line_eoln(MACRO_PROT_ARGS) if (mdoc->next == ROFF_NEXT_SIBLING) n = n->parent; if (n->tok == MDOC_Nm) - rew_last(mdoc, mdoc->last->parent); + rew_last(mdoc, n->parent); } if (buf[*pos] == '\0' && |