From 5d1129d2c6fc8ebde31436a6426534bcd634668d Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Fri, 1 May 2015 15:27:54 +0000 Subject: 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. --- mdoc_macro.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mdoc_macro.c b/mdoc_macro.c index 493ed8d0..236e63e9 100644 --- a/mdoc_macro.c +++ b/mdoc_macro.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_macro.c,v 1.197 2015/04/29 21:58:32 schwarze Exp $ */ +/* $Id: mdoc_macro.c,v 1.198 2015/05/01 15:27:54 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons * Copyright (c) 2010, 2012-2015 Ingo Schwarze @@ -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' && -- cgit v1.2.3-56-ge451