TC7rc4 Compare by content/Edit: lines copied TO source

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
StatusQuo
Power Member
Power Member
Posts: 1524
Joined: 2007-01-17, 21:36 UTC
Location: Germany

TC7rc4 Compare by content/Edit: lines copied TO source

Post by *StatusQuo »

Something non-intuitive:
  • Compare two files with at least a few lines each
  • enter edit mode
  • place cursor on left in any line (i.e. line number 3)
  • place cursor on right in a different line (i.e. number 1)
  • while having the cursor/focus on right side press Alt-right

    => not the line with the blinking cursor on the right side is copied,
    but instead the line where the (invisible) cursor was placed on the left side.
I would rather expect that the line number with the active cursor is affected,
no matter what side it may be on actually.
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
User avatar
iNSiDE
Junior Member
Junior Member
Posts: 23
Joined: 2007-03-27, 19:15 UTC
Location: Belarus, Minsk

Post by *iNSiDE »

Confirmed, it is wrong behaviour... At least I think so
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Confirmed, see reply by e-mail.
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 »

Fixed in RC5.

Now the cursor first jumps to the cursor position on the source side to show what will be copied.
The next key/button press then copies this line.

Exception:
  • on the left mark something in line 3
  • on the right place the cursor in line 1
Pressing Alt-right now instantly copies the selection on the left to the correspondig position on the right, without first showing the cursor position.
At least, the window is scrolled to the selection after copying.
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
StatusQuo
Power Member
Power Member
Posts: 1524
Joined: 2007-01-17, 21:36 UTC
Location: Germany

Post by *StatusQuo »

HISTORY.TXT wrote:08.05.07 Fixed: Compare editor: If nothing is selected and one of the Copy text button is clicked, only copy the current line if the "from" window is currently active
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) »

Pressing Alt-right now instantly copies the selection on the left to the correspondig position on the right, without first showing the cursor position.
At least, the window is scrolled to the selection after copying.
Yes, this is intentional. It is done mainly for the "next difference" and "previous difference" buttons: It would become tiring for copying text in both directions if the cursor had to be positionned first while there is already selected text.
Author of Total Commander
https://www.ghisler.com
Post Reply