[9.0 b13 x64]: Lister - caret glitch in UTF-8/16 file

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

Moderators: Hacker, petermad, Stefan2, white

Post Reply
fleggy
Junior Member
Junior Member
Posts: 97
Joined: 2011-10-20, 07:00 UTC

[9.0 b13 x64]: Lister - caret glitch in UTF-8/16 file

Post by *fleggy »

Hello,

I have a UTF-8 and UTF-16 files containing just two lines:

अत्याचार m Deviating from prescribed observances.Outrage.
अदेसा m Doubt,apprehension,surmise.

If I open such a file in Lister and press DOWN_ARROW (or END, RIGHT_ARROW, ...) at the moment when the blinking caret is visible then it remains visible as a ghost caret at the previous position.

Thanks, Tom
User avatar
milo1012
Power Member
Power Member
Posts: 1158
Joined: 2012-02-02, 19:23 UTC

Post by *milo1012 »

I can confirm that this happens only for TC x64 and also back in TC 8.5x.

And it is definitely related to a byte order mark (BOM) at the beginning of the file, no matter if for UTF-8 or UTF-16.
The actual text doesn't seem to matter, you can even put ASCII-only characters in the file and Lister will show this very behavior when the file has a BOM.

Additionally, as soon as you switch to another window and back to the Lister window, this "dangling" cursor won't show any more.
TC plugins: PCREsearch and RegXtract
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks, I can reproduce the problem. And it really seems to be caused by the byte order marker. It doesn't happen if you press Cursor right and then cursor left before you press cursor down.
Author of Total Commander
https://www.ghisler.com
fleggy
Junior Member
Junior Member
Posts: 97
Joined: 2011-10-20, 07:00 UTC

Post by *fleggy »

Hello,

the ghost cursor is fixed in beta14. Now the cursor is very often not visible at all immediately after opening an UTF file with BOM until some cursor control key is pressed. A very minor glitch unworthy of your attention, I think.

Thanks, Tom
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I will check it.
Author of Total Commander
https://www.ghisler.com
fleggy
Junior Member
Junior Member
Posts: 97
Joined: 2011-10-20, 07:00 UTC

Post by *fleggy »

Hello,

it is completely fixed in beta 15.

Thank you, Tom
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Great, thanks!
Author of Total Commander
https://www.ghisler.com
Post Reply