diff options
author | Thomas White <taw@physics.org> | 2018-03-19 09:12:18 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2018-03-19 09:12:18 +0100 |
commit | 39334a721e9cede4739c81c07bc6ed183c3c1434 (patch) | |
tree | 8f1749fcf0ab93d1b200af7ba5e14a8b6d43f150 /src/frame.c | |
parent | 847178be96f11d555d4ef05641382b5a97367f88 (diff) |
Set paragraph scblock/rscblock when splitting
Diffstat (limited to 'src/frame.c')
-rw-r--r-- | src/frame.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/frame.c b/src/frame.c index 62fe72c..938a643 100644 --- a/src/frame.c +++ b/src/frame.c @@ -1681,6 +1681,8 @@ static SCBlock *split_text_paragraph(struct frame *fr, int pn, size_t pos, NULL, strdup(""), NULL); pnew->n_runs = 0; add_run(pnew, end, end, fr->fontdesc, fr->col); + pnew->scblock = end; + pnew->rscblock = end; wrap_paragraph(pnew, pc, fr->w - fr->pad_l - fr->pad_r, 0, 0); @@ -1738,6 +1740,8 @@ static SCBlock *split_text_paragraph(struct frame *fr, int pn, size_t pos, add_run(pnew, NULL, NULL, NULL, col); pnew->runs[pnew->n_runs-1] = para->runs[i]; } + pnew->scblock = pnew->runs[0].scblock; + pnew->rscblock = pnew->runs[0].rscblock; /* Truncate the first paragraph at the appropriate position */ para->n_runs = run+1; |