[TC 11.00b1] Cursor position wrong when renaming file

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

Moderators: white, Hacker, petermad, Stefan2

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

Re: [TC 11.00b1] Cursor position wrong when renaming file

Post by *petermad »

OK, I will handle Shift+Cursor left/right myself too (ignore the displayed cursor position and use my own).

Btw, if you dislike the handling of Ctrl1Shift+Arrow, you can disable it via wincmd.ini, [Configuration]
CtrlArrow=0
This new functionality is not mentioned in history txt, but CtrlArrow=0 is mentioned in the Help

With CtrlArrow=1 it almost works as with CtrlArrow=1 (except for the extended stop-character set of course).

But when selecting to the left where there is initially nothing selected, then with CtrlArrow=0 I can see the blinking cursor at the left side of the selection when I use Shift+leftarrow or Shift+Ctrl+leftArrow or - with CtrlArrow=1 the blinking cursor stays at the right side of the selection (which it shouldn't) when using Shift+leftArrow or Shift+Ctrl+leftArrow. (use the example in the first post) - Anyway when pressing left or right after having selected with Shift+leftarrow or Shift+Ctrl+leftArrow the cursor jumps to the expected position, which it did not in TC 11.00b1.

Using Shift+rightArrow and Shift+Ctrl+rightArrow works as expected.
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.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.00b1] Cursor position wrong when renaming file

Post by *ghisler(Author) »

Unfortunately as I explained before I cannot change the position of the blinking cursor. I can just pretend that it is on the right side after the user presses Ctrl+Shift+LeftArrow, so when he then presses Shift+LeftArrow, it acts as if it were on the left. This is what I added to beta 2.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14793
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 11.00b1] Cursor position wrong when renaming file

Post by *petermad »

2ghisler(Author)
OK, then the issue is fixed in my perspective :-)
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.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
white
Power Member
Power Member
Posts: 4617
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 11.00b1] Cursor position wrong when renaming file

Post by *white »

white wrote: 2023-05-04, 11:55 UTC
HISTORY.TXT wrote: 03.04.23 Added: In place rename, command line: Stop at more non-alphanumeric characters on Ctrl+Left/Right: \/(),.;=''^+-%&!_[ ]{} (32/64)
2ghisler(Author)
The same single quote character is mentioned twice. Is that a typo?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.00b1] Cursor position wrong when renaming file

Post by *ghisler(Author) »

Yes, the reason is that I copied it from the source code, and there you have to write the single quote ' twice because the string itself is written in single quotes in Delphi:
const stopchars:pchar='\/(),.;=''^+-%&!_[]{} ';
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4617
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 11.00b1] Cursor position wrong when renaming file

Post by *white »

ghisler(Author) wrote: 2023-08-03, 07:55 UTC Yes, the reason is that I copied it from the source code, and there you have to write the single quote ' twice because the string itself is written in single quotes in Delphi:
Is the space between the square brackets also a typo? Or was it added for clarity?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.00b1] Cursor position wrong when renaming file

Post by *ghisler(Author) »

No, it was moved from the end of the string to this place, because you wouldn't see it at the end. A space is also a stop character.
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4617
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 11.00b1] Cursor position wrong when renaming file

Post by *white »

ghisler(Author) wrote: 2023-08-03, 11:28 UTC No, it was moved from the end of the string to this place, because you wouldn't see it at the end. A space is also a stop character.
Thanks, then the List of changes on the wiki is correct now.
Post Reply