LazUtils, UTF8WrapText: make sure that last BreakChar (e.g. space symbol) on line fits into wrapping length

This commit is contained in:
Maxim Ganetsky 2024-01-22 19:06:32 +03:00
parent 63bee66fd3
commit 4f8f408f97

View File

@ -3272,7 +3272,7 @@ begin
Inc(N);
if P^ = BreakStr[Length(BreakStr)] then
N := 0;
if N > MaxCol - Indent then
if N >= MaxCol - Indent then
begin
Len := Length(Result);
RP := Len;