Twice Ctrl+A removes the Command and Icon file button lines

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
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Twice Ctrl+A removes the Command and Icon file button lines

Post by *DrShark »

This behaviour seems strange to me.
So make a button (also applies to create User command dialog, which is the same as for button) which has a full paths to the files in Command and Icon file fields, like this one:

Code: Select all

TOTALCMD#BAR#DATA
c:\totalcmd\Utils\NTLinksMaker\NTLinksMaker.exe
/q- /b /r="%P" "@%WL" "%T"
c:\totalcmd\Utils\NTLinksMaker\NTLinksMaker.exe
NTLinksMaker
c:\totalcmd\Utils\NTLinksMaker\
0
-1
and after using button's "Change..." context menu item put cursor either in Command field (it's there by default) or Icon file field, then:
1) press Ctrl+A -> cursor moves to the end of the line;
2) press Ctrl+A again -> the text line in the field gets removed.

Checked on Vista 32bit, TC 9.00a 32 bit.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

I can confirm this

It only seem to happen if the full path to the file exists and the "Operation" -> "Auto-append suggested name" option is selected.

For example is my path to NTLinksMaker.exe: c:\totalcmd\Tools\NTLinksMaker\NTLinksMaker.exe and not c:\totalcmd\Utils\NTLinksMaker\NTLinksMaker.exe - and it is not until I change Utils to Tools in your button example that I can reproduce the bug.

Also TC commands (em_command, cm_command) and environment variables (%COMMANDER_PATH%) are not affected by the bug
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Confirmed! Even Ctrl+Z doesn't work then...
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This seems to be a Windows bug in the auto-complete handler. I can reproduce it also in the TC command line:
1. Paste C:\totalcmd\Tools\NTLinksMaker\NTLinksMaker.exe to the command line
2. Delete the last few characters
3. Press "Down" to go to the list of suggestions
4. Press Ctrl+A twice

TC only provides the names via a callback, the rest is handled by Windows...
Author of Total Commander
https://www.ghisler.com
Post Reply