summaryrefslogtreecommitdiffstats
path: root/macro.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-21 09:30:52 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-21 09:30:52 +0000
commite35bdc2019b8d686a0791cb670cd8b3ddafc6841 (patch)
treeb4306cd0ee05b75f68ba7640f330a335cfea9a26 /macro.c
parentb0a8134e8146ea473ff7df1d2c25ef395d1e0236 (diff)
downloadmandoc-e35bdc2019b8d686a0791cb670cd8b3ddafc6841.tar.gz
Fixed new partial-imp closure (wasn't action-ing closed scopes).
Diffstat (limited to 'macro.c')
-rw-r--r--macro.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/macro.c b/macro.c
index 3e8e9e3d..e8a60c9e 100644
--- a/macro.c
+++ b/macro.c
@@ -1057,19 +1057,15 @@ blk_part_imp(MACRO_PROT_ARGS)
if (body == n)
break;
- if (n) {
- mdoc->last = body;
- mdoc->next = MDOC_NEXT_SIBLING;
- }
+ if (n && ! rew_last(mdoc, body))
+ return(0);
if (1 == ppos && ! append_delims(mdoc, line, pos, buf))
return(0);
- if (n) {
- mdoc->last = mdoc->last->parent;
- assert(mdoc->last == blk);
- mdoc->next = MDOC_NEXT_SIBLING;
- }
+ if (n && ! rew_last(mdoc, blk))
+ return(0);
+
return(1);
}