Resync Comparison From Here makes gaps on both sides

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Valentino
Power Member
Power Member
Posts: 706
Joined: 2003-02-07, 00:21 UTC
Location: Ukraine

Resync Comparison From Here makes gaps on both sides

Post by *Valentino »

After activating "Resync Comparison From Here" very often empty lines appear on both sides. Sometimes it's only 1 line, sometimes 20 lines, depending on how much empty lines were on one of the sides before activating "Resync Comparison From Here".
Example:
Create file1.txt:

Code: Select all

Line1
Line7
Line8
Line2
Create file2.txt:

Code: Select all

Line1
Line2
Line3
Line4
Line5
Line6
Line7
Line8
Line2
And compare them. You'll get:

Code: Select all

Line1        Line1
Line7
Line8
Line2        Line2
             Line3
             Line4
             Line5
             Line6
             Line7
             Line8
             Line2
Select Line7 on both sides and press Resync, you'll get:

Code: Select all

Line1        Line1


             Line2
             Line3
             Line4
             Line5
             Line6
Line7        Line7
Line8        Line8
Line2        Line2
As you can see two empty lines between Line1 and Line2 could be deleted.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48113
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Currently the higher line is just moved down to the lower and recompared - no empty lines are being removed. I will consider your suggestion, but cannot promise of or when I will add it.
Author of Total Commander
https://www.ghisler.com
Post Reply