diff options
author | Thomas White <taw@bitwiz.org.uk> | 2017-01-13 23:06:52 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2017-01-13 23:06:52 +0100 |
commit | 4495f3ca17aed37702c0576226d1e88875c24fe9 (patch) | |
tree | 5842b57a3aa992205cf950d71369b943ef43a8db /src | |
parent | 16f61aac97f2214167e35c70a1d4d4791254217f (diff) |
Set paragraph width correctly when splitting paragraphs
Diffstat (limited to 'src')
-rw-r--r-- | src/frame.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/frame.c b/src/frame.c index d87e9d3..c8a3a42 100644 --- a/src/frame.c +++ b/src/frame.c @@ -1092,8 +1092,8 @@ static SCBlock *split_text_paragraph(struct frame *fr, int pn, size_t pos, pnew->open = para->open; para->open = 0; - wrap_paragraph(para, pc, fr->w); - wrap_paragraph(pnew, pc, fr->w); + wrap_paragraph(para, pc, fr->w - fr->pad_l - fr->pad_r); + wrap_paragraph(pnew, pc, fr->w - fr->pad_l - fr->pad_r); return sc_block_next(rr->scblock); } |