pyscripter / SynEdit

SynEdit is a syntax highlighting edit control, not based on the Windows common controls.
26 stars 11 forks source link

Error in TSynEditStringList.SetFileFormat #66

Closed groehner closed 1 year ago

groehner commented 1 year ago
procedure TSynEditStringList.SetFileFormat(const Value: TSynEditFileFormat);
begin
  case FileFormat of               <- this is wrong, it must be Value
    sffDos: LineBreak := WideCRLF;
    sffUnix: LineBreak := WideLF;
    sffMac: LineBreak := WideCR;
    sffUnicode: LineBreak := WideLineSeparator;
  end;
end;

In the consequence in PyScripter Edit/File Format/Unix doesn't change the format.