Avoid duplication of words on screen

When giving up splitting a word sequence because it is not enough to
make the row short enough, make sure to clean up properly.
This commit is contained in:
Jean-Marc Lasgouttes 2021-12-15 11:19:18 +01:00
parent cb4715d739
commit 62ad205dbf

View File

@ -585,6 +585,7 @@ Row::Elements Row::shortenIfNeeded(int const w, int const next_width)
*/
if (wid_brk + cit_brk->dim.wid < w
&& dim_.wid - (wid_brk + brk.dim.wid) >= next_width) {
tail.clear();
break;
}
end_ = brk.endpos;