From 6f4dfee487a912ad8db247ca57cd0dc87488cdee Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sat, 20 Oct 2018 10:01:57 +0200 Subject: Append new block inside frame top level block fr->scblocks is the block which created the frame, e.g. \f Therefore the new block at the end needs to be appended inside, not after. --- src/frame.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frame.c b/src/frame.c index 4ea97d4..2f6d16b 100644 --- a/src/frame.c +++ b/src/frame.c @@ -733,7 +733,7 @@ void ensure_run(struct frame *fr, struct edit_pos cpos) /* If the paragraph's SCBlock is NULL, it means this paragraph * is right at the end of the document. The last thing in the * document is something like \newpara. */ - bl = sc_block_append_end(fr->scblocks, NULL, NULL, strdup("")); + bl = sc_block_append_inside(fr->scblocks, NULL, NULL, strdup("")); } -- cgit v1.2.3