aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.me.uk>2018-10-20 10:01:57 +0200
committerThomas White <taw@bitwiz.me.uk>2018-10-20 10:01:57 +0200
commit6f4dfee487a912ad8db247ca57cd0dc87488cdee (patch)
treef9a4474eb69358b1b4b05b8f6b2bb9ed36597583
parentde8ffb696a1dcc23f49bc63ea216f5f818172d33 (diff)
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.
-rw-r--r--src/frame.c2
1 files changed, 1 insertions, 1 deletions
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(""));
}