mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Differ shows "identical" on different files (fixes #1338)
This commit is contained in:
parent
1705059397
commit
ece8367329
1 changed files with 6 additions and 0 deletions
|
|
@ -1537,6 +1537,12 @@ begin
|
|||
AText:= ConvertEncoding(AText, Encoding, EncodingUTF8);
|
||||
end;
|
||||
SynDiffEdit.Lines.Text:= AText;
|
||||
// Add empty line if needed
|
||||
if (Length(AText) > 0) and (AText[Length(AText)] in [#10, #13]) then
|
||||
begin
|
||||
SynDiffEdit.Lines.Add(EmptyStr);
|
||||
SynDiffEdit.Lines.SkipLastLineBreak:= True;
|
||||
end;
|
||||
// Determine line break style
|
||||
SynDiffEdit.Lines.TextLineBreakStyle := GuessLineBreakStyle(AText);
|
||||
finally
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue