TC7rc3 - Compare By Content, editing not possible at the end

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
white
Power Member
Power Member
Posts: 4622
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

TC7rc3 - Compare By Content, editing not possible at the end

Post by *white »

  • Select two files that differ in size at least a few lines and open the Compare contents dialog (menu Files/Compare By Content).
  • Press F6 to enable Edit mode.
  • Press Ctrl-End to go to the end of the left file.
  • In the biggest file click on one of the lines at the end of the file to bring the cursor to that line. The line must be located at least two lines further than the last line of the smallest file.
  • Click on the relevant Copy button (Copy -> or Copy <-) to copy that line to the smallest file.
  • The line is not copied. Click the relevant Copy button again and again. The fourth time the line gets copied to the other file.
Other situation:
  • Select two files that differ in size at least a few lines and open the Compare contents dialog (menu Files/Compare By Content).
  • Press F6 to enable Edit mode.
  • Click in the smallest file and press Ctrl-End to go to the end of that file.
  • Type some text.
  • The text is not added though the Undo button indicates a change in the file.
  • Click the Next difference button until the last difference is selected.
  • Click the appropriate Copy button to copy the different lines from the biggest to the smallest file.
  • Click on the Undo button again and again until all changes are undone and the Undo button is disabled again.
  • Type some text (cursor should be at the end of the smallest file).
  • The text is added!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Indeed the text cannot be added because the line hasn't been allocated yet! Only one line at a time is allocated when you try to copy the text. I will change that.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Should be fixed now in RC4, please test!
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4622
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

Not fixed correctly. Go to the end of the smallest file. Hit the Enter key repeatedly and see what happens.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Works for me! What problem did you encounter?
Author of Total Commander
https://www.ghisler.com
StatusQuo
Power Member
Power Member
Posts: 1524
Joined: 2007-01-17, 21:36 UTC
Location: Germany

Post by *StatusQuo »

Maybe this:
Use two identical files FILE1, FILE2, add some lines to FILE2 and compare them in Edit mode (FILE2 on the right side).
- Place cursor on the right to the last possible line (= last line of left FILE1).
=> Pressing Enter key repeatedly moves down the last line on the left side.
Screenshot1
Is this intentional?

After copying the last line of FILE1 to FILE2 on the right, you can also add lines to FILE2 on the right, but the positions of the previously inserted new lines are placed a bit funny:
Screenshot2
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks, I could reproduce the problem now. Can you contact me by e-mail for a test version, please? -> beta at ghisler dot com
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4622
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

This is what I did:
Open two files which differ in size six lines. Smallest file at the left.
Go into Edit mode.
Hit Ctrl-End in the smallest file.
Hit Enter repeatedly.

Five empty lines without line numbers are created. Then empty lines with line number 0 are created.
See screen shot.

Click on Undo until all changes are undone. The cursor is now one line above where it should be.
Move done one line to be at the bottom again. And hit Enter again repeatedly. Lines are now added normally.
See screen shot.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

2white
Thanks for the details. Can you contact me by e-mail to beta at ghisler dot com for a test version, please? I have already sent one to user StatusQuo for testing the bugs he reported. It takes too long to fix with the 1-2 week release cycle of public beta versions. :(
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4622
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

Fixed in TC7rc5.
Post Reply