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.
[TC 11.55] Find text in the internal file viewer loses view on deleted file
Moderators: Hacker, petermad, Stefan2, white
Re: [TC 11.55] Find text in the internal file viewer loses view on deleted file
How do you know it is completely loaded into memory? Lister doesn't work that way.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.
Re: [TC 11.55] Find text in the internal file viewer loses view on deleted file
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?
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
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
- ghisler(Author)
- 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
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.
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
https://www.ghisler.com
Re: [TC 11.55] Find text in the internal file viewer loses view on deleted file
yespetermad 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?

