Page 1 of 1

Tab oddities

Posted: Thu Oct 27, 2016 10:42 am
by MSpagni
Many times I had the feeling of something odd with the display of the tabs, but I was unable to focus it.
Now I got it.

The easy recipe: compare two files identical, were it not that one has tabs while the other has spaces instead.
Not ignoring white space, the two files of course are different.
Indeed, if you put the tabbed one in the left pane and the untabbed in the right pane (and selecting detail level: lines and chars) then you can see the "added" spaces.
Swap the files and... you can't see them anymore. :lol:
(N.B. if you swap again then the difference returns visible.)
(N.B. #2: It only depends on which pane contains which file; the swap is simply the easiest way to do the check.)

There is also something similar when saving a file in which you just copied a block of lines without tabs on the correspondent block in the other file, but the thing is more complicated and I've not yet studied it.
Food for later... :wink:

Re: Tab oddities

Posted: Fri Oct 28, 2016 3:59 pm
by psguru
Can't reproduce it. Could you post screenshots?

Re: Tab oddities

Posted: Sat Oct 29, 2016 2:22 am
by MSpagni
Sure!
You can see it by yourself, but anyway: Foo1 is tabbed, Foo2 is not.

P.S. Forget the note about the saving. I found my fault. :oops:

Re: Tab oddities

Posted: Sat Oct 29, 2016 10:07 am
by psguru
Hmm, still can't reproduce. Could you show white space on your screenshots?

Re: Tab oddities

Posted: Sat Oct 29, 2016 10:24 am
by MSpagni
Sure.
Here it comes.

Re: Tab oddities

Posted: Sat Oct 29, 2016 11:01 am
by MSpagni
For what is worth: the problem is present on both 32 bits (XP) and 64 bits (windows 7).
After having exported (saved) my configuration :mrgreen: I tried resetting all pages to default, then, of course, I choose "lines and characters": the effect is still there.
I tried completely removing EDP, including the registry data (gosh!), and reinstalling from scratch (without restoring my configuration): same result.

Re: Tab oddities

Posted: Sat Oct 29, 2016 11:05 am
by psguru
So, just to understand, what exactly is the problem? Not marking background color of the first spaces when the file with spaces is on the left? If so, then yes, we can reproduce this.

Re: Tab oddities

Posted: Sat Oct 29, 2016 11:15 am
by MSpagni
Yes, right that.
That is: you have lines marked as "different" but with no apparent difference. And this only if you compare them in a specific order...

Re: Tab oddities

Posted: Sat Oct 29, 2016 11:16 am
by psguru
Well, you can see the difference when you enable white space view. Anyway, we'll look into this, thanks.

Re: Tab oddities

Posted: Sun Oct 30, 2016 2:28 pm
by psguru
The mystery is solved.

When you have file with spaces on the left, two regions in each line have the same background color since, by default, background colors of Changed In Changed and Deleted are identical. When you toggle, you are looking at Changed In Changed followed by Added, which have different background colors.

Re: Tab oddities

Posted: Sun Oct 30, 2016 2:46 pm
by MSpagni
I'm glad you understood the matter.
And I think I did too but, maybe because it's bed time here, I'm a bit confused.
I hoped I could "fix" the problem by changing a color in the options, but it seems this is not possible.
(Well, no, chianging colors Is possible; what I mean is that that operation don't solve the problem!)
Is it so?
I'llook at it tomorrow when I (hopefully) will be less sleepy...

Re: Tab oddities

Posted: Sun Oct 30, 2016 2:48 pm
by psguru
Yes, it does. Try changing the Changed In Changed back color to, say, yellow.

Re: Tab oddities

Posted: Mon Oct 31, 2016 12:18 am
by MSpagni
Now that I'm awake I understand what you write. :oops:
Problem solved: thank you very much.