If only the last but two letter of one row is different to comparing one, all last three letters are highlighted into red as difference instead on one single letter. This is not repro after switching to binary view.
Repro steps in text mode of compare by content:
file1.txt (ANSI, Unicode, it does not matter) contains:
1234567890
file2.txt contains:
1234567990
Differences:
1234567890
This is also repro when the last but one is only different.
1234567890 <-> 1234567800
As it's not repro in binary view, therefore the bug seems to be introduced in text mode comparer.
tc75pb7: Compare By Content/Wrong highlighting in txt mode
Moderators: Hacker, petermad, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 50479
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
This isn't a bug, compare looks for insertions and deletions, it doesn't compare by by byte. Also single identical characters are partly ignored by the algorithm to avoid that only single characters of an inserted word are matched, which would completely rip apart a text.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
But it's strange that the highlighting does not work properly only for the last but two letters of one single line.ghisler(Author) wrote:This isn't a bug, compare looks for insertions and deletions, it doesn't compare by by byte. Also single identical characters are partly ignored by the algorithm to avoid that only single characters of an inserted word are matched, which would completely rip apart a text.
Moreover it's not repro in binary view.
But it's a minor bug indeed which I didn't recognize in the past.