Page 1 of 1

[9.51] Show only differences doesn't work when only whitespaces differ

Posted: 2020-05-09, 07:15 UTC
by MVV
I've just noticed that "Show only differences" feature of file comparer doesn't hide any lines when only whitespaces differ. E.g. I have two files that only differ in tabs/spaces and look identical (all lines are black) with enabled "Ignore repeated spaces" option, and when I check "Show only differences" option, just nothing happens: no lines are hidden, even drop-down list with number of extra lines stays disabled. I think that this feature should hide all file lines if they all look identical with selected compare options. Just because there are no differences at all. This should help to see that there are really no differences.

Code: Select all

MIME-Version: 1.0
Content-Type: application/octet-stream; name="test.7z"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test.7z"

N3q8ryccAASezQmQIgUAAAAAAAAiAAAAAAAAABqIBoLgGywEqF0AF+B8hm8wiPEisjcd5FpI5/+j
RPdYa/ML+ftwYaUBL0Un4gvKDnMxyaf5W8qnbtrrNJXSxArI1n0SM3+mVrIw/oGowmnNMkJaxiZQ
IY9FGFF64J5a1DFrkFBF5lfrghFVbyZkmwHfCZfuQ/34wbnaF1oFrBjJn4rw8LPQlM8Ob2OWx4Dn
VPgYFQ7fFJD6i5Ui+S4zLLxsq4B0+N5yBRnC9nZEq12ik4fBnabbjaPdqZOKvZfpolGYFqrkiUTs
GzOPK7DlTZhXR+5b1w57qiPKHCUQfm445zaAS+72lHpOPTgFCTah/tRr0Cek7GnZcJEusxDY0BUX
UBZlSMNTAXc/yyq8rEYB3VzVA6wOo92HAlLFyn+F76hqWyjyHvuS2vB7SeOT1d3DIRt1JrXv13Ns
DsEj8zW0WN/QjSMPWLXQy/EZajbDHXbvXkIx9ckIjO7lNeh0CEktfx7Bv9pNC4kBFBnYgtNkGdqh
ZEiCCEcVghyJhbZGFL90ZuelDBXtAD3A53sDz8k011fNrojj6h94OUP78hrn/PSye+mUjoat5uwk
8i3CRNMMQT68YAg0hwDwMmDjkZ173iT/AaawIxs33yOPNQA8PtMpNzVI/ZRXHCyl6Fhm0EcrsmKK
aHlZIRj/axJsBYYM3kojasGUTntqAz0QoYv2zy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2oDQO2AbuB2W2GAAXBoSwAQlyAAcLAQABIwMBAQVdABAA
AAyAlgoB8/uNpQAA

Re: [9.51] Show only differences doesn't work when only whitespaces differ

Posted: 2020-05-11, 13:46 UTC
by ghisler(Author)
Unfortunately I cannot open your decoded test.7z archive, neither internally nor with 7zfm.exe.

I guess that Total Commander reports "0 differences found" in the footer. In this case, it will not do anything when you try to show only differences.

Re: [9.51] Show only differences doesn't work when only whitespaces differ

Posted: 2020-05-11, 14:46 UTC
by petermad
Unfortunately I cannot open your decoded test.7z archive, neither internally nor with 7zfm.exe.
Hmm, I have no problems opening it - I have uploaded the decoded file here: https://madsenworld.dk/tcmd/MVVtest.7z

Re: [9.51] Show only differences doesn't work when only whitespaces differ

Posted: 2020-05-14, 06:06 UTC
by MVV
ghisler(Author),
I can perfectly open this archive with 7-Zip GUI 19 or with internal TC unpacker (with clean INI).

You're right, TC shows '0 differences'. But I think that in such case this option should just show empty panels, current behaviour is buggy. At least because the checkbox gets enabled but combobox doesn't - this is inconsistent.

Anyway, I don't see any sense in such an exclusion for equal files, option 'show only differences' may really do what it is named for - show only differences, and simply show nothing when there are no differences (just because it does what it is named for). This behaviour will be consistent and will not confuse anyone. Combobox for such cases should get enabled (expected when one enables the option) but change nothing (it will be expected too - no differences so no anchors to show some equal lines so combobox selection doesn't matter).

Re: [9.51] Show only differences doesn't work when only whitespaces differ

Posted: 2020-05-14, 10:16 UTC
by petermad
I tend to agree with MVV.

Re: [9.51] Show only differences doesn't work when only whitespaces differ

Posted: 2020-05-14, 10:38 UTC
by ghisler(Author)
I can confirm that it gets "0 differences". TC shows the entire files in this case, the user would be very confused when nothing at all would be shown, especially when using "show extra lines"...

Re: [9.51] Show only differences doesn't work when only whitespaces differ

Posted: 2020-05-15, 10:12 UTC
by MVV
As you can see, a user (me) is confused that option is broken and something wrong is shown when there are no differences and only differences are expected to be shown.
And that checkbox looks to be broken since it doesn't enable combobox. :D

Re: [9.51] Show only differences doesn't work when only whitespaces differ

Posted: 2020-05-18, 16:42 UTC
by ghisler(Author)
Well, you can never get it right for everyone...

Re: [9.51] Show only differences doesn't work when only whitespaces differ

Posted: 2020-05-22, 11:44 UTC
by MVV
But I really don't think that anyone wants to see equal contents if only differences should be shown. :)