Hi,
AFAIR toggling WordWrap wouldn't (and shouldn't) affect the value of either Memo.Lines[0] or Memo.Lines.Text in Lazarus (or in Delphi, but I haven't used it in decades), and indeed, according to grok (?) the Embarcadero documentation states that "The wrapping has cosmetic purposes only. The text does not include any return characters that were not explicitly entered.".
Currently In Lazarus, if the first line contains a long text that gets wrapped, Lines[0] returns the truncated text. This, in turn, can generate a wrong configuration file in "Configure Build Lazarus" (ide/buildlazdialog.pas) if the Options contains lines long enough to trigger the wrapping, e.g.:
-gw3 -gl -gh- -gt -Co -Cr -Ci -Sa -Sy- -
vm3123,3124,4055,5023,5024,5025,5027,5028,5043,5044,5063,5066,5079,6058,11030,11031
Is this intended behaviour?
BTW Lazarus` configuration file bug can seemingly (and surprisingly) be fixed by using Lines.Text instead of Assign
Best regards,
Fl?vio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20260104/d1fbdcf0/attachment.htm>
