[solved] %C1 and %C2 doesn't fully work like Compare by Content

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

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

[solved] %C1 and %C2 doesn't fully work like Compare by Content

Post by *petermad »

Using %C1 and %C2 doesn't fully work like when selection for Compare by Content is made.

If only ONE file is selected in the source panel and NONE is selected in the target panel AND the cursor is NOT on the selected file, then if you are in the left panel %C1 will point to the selected file in the left panel, but %C2 will point to a file with the name of the file UNDER the cursor in the right panel - that is not how CbC does it it - it will use the selected file in the left side and a file with the same name as the SELECTED in the right panel for the right side.

If you are in the right panel with only ONE file selected and the cursor on ANOTHER file and no files selected in the left panel, then %C1 points to a file with the same name as the file UNDER the cursor in the left panel - this is also not how CbC does it - it will point to a file with the same name as the SELECTED file in the left panel for the left side and to the SELECTED file in the right side.

In other words - when only ONE file is selected, then the file UNDER the cursor should not be included in the selection (unless the cursor is on the selected file, of course) - Using the file UNDER the cursor should ONLY happen if NO files are selected.
Last edited by petermad on 2021-05-30, 12:03 UTC, edited 1 time in total.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

You are right, I missed this special case, thanks!
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Please try with beta 8!
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Confirmed fixed in TC9b8 :-)
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply