Skip to content

Commit

Permalink
rdpq_paragraph: avoid wrapping previous line on long words
Browse files Browse the repository at this point in the history
  • Loading branch information
rasky committed Nov 11, 2024
1 parent c41a78a commit 0c4e388
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rdpq/rdpq_paragraph.c
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ void __rdpq_paragraph_builder_newline(int ch_newline)
__rdpq_paragraph_builder_update_bbox_width(builder.ch_line_start, ch_newline);

builder.ch_line_start = ch_newline;
builder.ch_last_space = -1;
builder.layout->nlines += 1;
}

Expand Down

0 comments on commit 0c4e388

Please sign in to comment.