summaryrefslogtreecommitdiffstats
path: root/mdoc_macro.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-05-01 15:27:54 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-05-01 15:27:54 +0000
commit69c57487163693701fa1106b63c28ab9fb674ede (patch)
tree27329cfa571d587481264b5c5bcc5642add9a638 /mdoc_macro.c
parentdb2bae06bdf2e69756cd08658f1032139adcfaea (diff)
downloadmandoc-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.c2
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' &&