Lister - weird behaviour after search

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

Moderators: Stefan2, white, sheep, Hacker

Post Reply
User avatar
deus-ex
Power Member
Power Member
Posts: 739
Joined: 2003-02-10, 17:45 UTC

Lister - weird behaviour after search

Post by *deus-ex » 2007-01-23, 20:40 UTC

When performing a search in a big textfile (~15MB) within the Lister and the line with the first found match is placed at the topmost row, pressing the left-arrow key causes the text to scroll up for about one page. This happens everytime AS LONG as the line with the first match is positioned at the topmost row AND while the cursor hasn't been moved down for ~70 lines (my resolution is set to 1280x1024x32).

Either pressing upward so that the line containing the first match is placed at the second topmost row or advancing with the search to the next match (if any) ~fixes~ the strange behaviour of the left-arrow key.


I tried to reproduce this behaviour with small textfiles (~1-10KB) but the bug only appeared when working with the mentioned big texfile (~15MB) which can be downloaded here:

ftp://ftp.amigascne.org/mirrors/ftp.modland.com

Look for allmods_2007-xx-xx.rar, which is updated daily hence i did not link directly, archive size is ~2MB.

_______
Regards,
deus-ex

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

Post by *petermad » 2007-01-23, 23:51 UTC

I cannot confirm this - tried with your 15 Mb file.

What are your lister settings?
License #524 (1994)
Danish Total Commander Translator
TC 9.22a 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 64bit, 'Everything' 1.4.1.935 (x64) and TC 3.0b3 on Android 6.0
Get: Extended Total Commander Menus | PHSM-Calendar

User avatar
deus-ex
Power Member
Power Member
Posts: 739
Joined: 2003-02-10, 17:45 UTC

Post by *deus-ex » 2007-01-24, 00:41 UTC

Hi petermad,
i just retried. It turns out that you have to have the Textcursor [F6] enabled.

Now do a search in the file for e.g. "necros" which should find "Asylum\Necros\crusader - no regret - carnage and mayhem (middle eastern style).amf". Now press the left arrowkey to get the effect. You can move the cursor to the right or down first as well. As long as you don't continue the search or travel more than ~70 lines down (with 1280x1024 resolution) and having the first match still at the topmost line the weird effect happens.

_______
Regards,
deus-ex

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

Post by *ghisler(Author) » 2007-01-24, 15:10 UTC

I have found something like this already, please retry when beta 4 comes out. Thanks!
Author of Total Commander
http://www.ghisler.com

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

Post by *petermad » 2007-01-24, 15:13 UTC

2deus-ex
you have to have the Textcursor [F6] enabled
I did.
Now do a search in the file for e.g. "necros" which should find "Asylum\Necros\crusader - no regret - carnage and mayhem (middle eastern style).amf"
The first hit is: "Asylum\Necros\crusader - no regret - bleep2.amf "

Asylum\Necros\crusader - no regret - carnage and mayhem (middle eastern style).amf is the second hit.

Anyway no matter whether I go to the first his or the second, I still cannot get that arrow-left bug.

BTW the standard configuration is that a search hit is shown in line 3 not line 0 - so thats why I would like to see your Lister configuration, maybe it oly happens with for example a certain height of the window or something else.

Please just show us the [Lister] section of your wincmd.ini file - for example:

Code: Select all

[Lister]
textwidth=81
binwidth=75
SearchGoBack=3
BmpStartup=1
Multimedia=1
IView=0
IViewPath=C:\Programmer\IrfanView\i_view32.exe
Maximized=0
x=128
y=60
dx=769
dy=656
Wrap=1
HTMLasText=0
LinkBraces=1
RTF=1
BgSelColor=255
FgSelColor=16777215
LeftMargin=200
RightMargin=200
TopMargin=200
BottomMargin=200
TabWidth=2
Caret=1
Font4=Lucida Console,10
Font5=Arial,10
CenterBitmap=1
License #524 (1994)
Danish Total Commander Translator
TC 9.22a 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 64bit, 'Everything' 1.4.1.935 (x64) and TC 3.0b3 on Android 6.0
Get: Extended Total Commander Menus | PHSM-Calendar

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

Post by *ghisler(Author) » 2007-01-24, 15:29 UTC

It happens when the cursor is near the beginning of a 64k data block (Lister reads the data in blocks, and re-reads when necessary). There is a re-read error when scrolling to the left.
Author of Total Commander
http://www.ghisler.com

User avatar
deus-ex
Power Member
Power Member
Posts: 739
Joined: 2003-02-10, 17:45 UTC

Post by *deus-ex » 2007-01-24, 17:20 UTC

petermad wrote:The first hit is: "Asylum\Necros\crusader - no regret - bleep2.amf "
You are correct. It was quite late that night. :)
petermad wrote:BTW the standard configuration is that a search hit is shown in line 3 not line 0
Indeed i have changed it to be the first row rather than the third. Now I just tried with the default setting, it doesn't make any difference, the issue still occurs for me.


NOTE:
I permanently removed all entries containing default settings from my wincmd.ini to keep it small, readable and fast to load. Hence my Lister-section is rather small compared to yours.

Code: Select all

[Lister]
BgSelColor=10789024
binwidth=75
Caret=1
dx=960
dy=729
FgSelColor=8454143
LinkBraces=0
Maximized=1
SearchGoBack=0
ShrinkBitmap=1
Startup=32
textwidth=81
Wrap=0
x=88
y=88
As Christian wrote, there is a known issue with the Lister which will be fixed with the next beta release.

Thank you petermad, and Christian of course. :)
deus-ex

User avatar
deus-ex
Power Member
Power Member
Posts: 739
Joined: 2003-02-10, 17:45 UTC

Post by *deus-ex » 2007-02-22, 15:38 UTC

Bug is fixed with TC v7.0 beta 4. :D

_______
Regards,
deus-ex

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

Post by *ghisler(Author) » 2007-02-23, 10:12 UTC

Great, thanks for checking!
Author of Total Commander
http://www.ghisler.com

Post Reply