mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-13 23:19:30 +02:00
LazUtils, UTF8WrapText: make sure that last BreakChar (e.g. space symbol) on line fits into wrapping length
This commit is contained in:
parent
63bee66fd3
commit
4f8f408f97
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user