[TC 11.55RC7] Incorrect caret movement in the edit-file dialog box

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
yyang
Member
Member
Posts: 165
Joined: 2007-03-27, 11:41 UTC
Location: China

[TC 11.55RC7] Incorrect caret movement in the edit-file dialog box

Post by *yyang »

On my machine (Windows 10 64-bit Simplified Chinese Edition), this issue affects both the 32-bit and 64-bit versions of TC 11.55RC7. It doesn't happen in TC 11.51.

To reproduce:
  1. Press Shift+F4 to create a file named "好.md" (w/o the quotation marks), and keep the dialog box open. You can copy and paste this string, or use another string that contains a CJK character.
  2. Press Ctrl+Shift+Left to select the "md" part.
  3. Press Left. The expected caret position is between "." and "m", but the actual position is between "m" and "d".
#147523
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50934
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.55RC7] Incorrect caret movement in the edit-file dialog box

Post by *ghisler(Author) »

Not confirmed. Here is what I tried:
1. Booted up my Windows 10 PC
2. Opened Control Panel - Region
3. Changed the language for non Unicode compatible programs to Chinese simplified (China) -> Reboot
4. Opened Control Panel - Region
5. Changed the regional scheme to Chinese (China)
6. Started Total Commander
7. Changed the keyboard input scheme to Chinese (China) PinYin
8. Shift+F4 while standing on ".."
9. Pasted: 好.md
10. Put cursor at end
11. Ctrl+Shift+Left -> "md" was selected
12. Cursor left -> cursor was between "." and "m"

I tried this with Total Commander 32-bit and 64-bit. Version 11.51 behaves the same as 11.55.
I also checked the source code, neither the code of the used combo box nor of the dialogs was changed between 11.51 and 11.55.

Maybe something else changed on your system?
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50934
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.55RC7] Incorrect caret movement in the edit-file dialog box

Post by *ghisler(Author) »

Please check whether you have set SkipCharOnCursor in wincmd.ini under [Configuration]. If yes, remove it and restart Total Commander.

I'm postponing this to a later version, sorry.
Author of Total Commander
https://www.ghisler.com
User avatar
yyang
Member
Member
Posts: 165
Joined: 2007-03-27, 11:41 UTC
Location: China

Re: [TC 11.55RC7] Incorrect caret movement in the edit-file dialog box

Post by *yyang »

Removing SkipCharOnCursor does fix this issue. Thanks a lot!
#147523
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50934
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.55RC7] Incorrect caret movement in the edit-file dialog box

Post by *ghisler(Author) »

Nice to hear that! The problem does not occur here with SkipCharOnCursor=1, but it was the only option which influenced the cursor movement, so I suggested removing this.

It would still be nice if I could reproduce and fix the problem.
1. Could you please check my steps in this post and let me know if anything is different on your system (e.g. regional settings)?
2. Could you send me the section [Configuration] from your wincmd.ini to cghisler at gmail dot com, maybe it's a settings problem?
Author of Total Commander
https://www.ghisler.com
User avatar
yyang
Member
Member
Posts: 165
Joined: 2007-03-27, 11:41 UTC
Location: China

Re: [TC 11.55RC7] Incorrect caret movement in the edit-file dialog box

Post by *yyang »

I think my original setting was SkipCharOnCursor=0. I'll send the Configuration section separately.
#147523
Post Reply