mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-17 08:09:26 +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);
|
Inc(N);
|
||||||
if P^ = BreakStr[Length(BreakStr)] then
|
if P^ = BreakStr[Length(BreakStr)] then
|
||||||
N := 0;
|
N := 0;
|
||||||
if N > MaxCol - Indent then
|
if N >= MaxCol - Indent then
|
||||||
begin
|
begin
|
||||||
Len := Length(Result);
|
Len := Length(Result);
|
||||||
RP := Len;
|
RP := Len;
|
||||||
|
Loading…
Reference in New Issue
Block a user