[TC 11.55] Find text in the internal file viewer loses view on deleted file

Moderators: Hacker, petermad, Stefan2, white

Post Reply
andry81
Member
Member
Posts: 142
Joined: 2018-11-22, 19:17 UTC

[TC 11.55] Find text in the internal file viewer loses view on deleted file

Post by *andry81 »

The error message `File not found!` does come before `Not found` even if a file is completely loaded into memory.

It is pretty annoying due to search can be made not from the beginning.

I suggest a loop the search even if the file is not completely loaded and when the point where the search has started is reached, then report the file completeness or absence. But not remove the view automatically if the file is deleted or not found.
User avatar
white
Power Member
Power Member
Posts: 6229
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 11.55] Find text in the internal file viewer loses view on deleted file

Post by *white »

andry81 wrote: 2025-12-01, 09:46 UTC The error message `File not found!` does come before `Not found` even if a file is completely loaded into memory.
How do you know it is completely loaded into memory? Lister doesn't work that way.
User avatar
petermad
Power Member
Power Member
Posts: 16453
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 11.55] Find text in the internal file viewer loses view on deleted file

Post by *petermad »

2andry81

Lister only loads 64K of the file into memory https://www.ghisler.ch/board/viewtopic.php?p=300576#p300576 - are the files you are talking about smaller than 64k?
License #524 1994
Danish Total Commander Translator
TC 11.56 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1400a
TC 3.60 on Android 6, 13, 15 & 16
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 51481
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.55] Find text in the internal file viewer loses view on deleted file

Post by *ghisler(Author) »

I don't see any bug here:
When you open a file in lister and then rename or delete the file, Lister will not be able to load more than the current block. Therefore you will get an error "File not found" from the read function, and then "Not found" from the search function.
Author of Total Commander
https://www.ghisler.com
andry81
Member
Member
Posts: 142
Joined: 2018-11-22, 19:17 UTC

Re: [TC 11.55] Find text in the internal file viewer loses view on deleted file

Post by *andry81 »

petermad wrote: 2025-12-01, 19:02 UTC 2andry81

Lister only loads 64K of the file into memory https://www.ghisler.ch/board/viewtopic.php?p=300576#p300576 - are the files you are talking about smaller than 64k?
yes
Post Reply