Wrong file highlighting after background renaming

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Wrong file highlighting after background renaming

Post by *MVV »

I noticed that with 7-Zip which creates .7z.tmp and then renames it to just .7z. In order to reproduce you should have two file types with different highlight colors (one may have standard color), e.g. *.tmp and *.txt or any other.

Steps to reproduce:
1. Create and start BAT file (you can change extensions in lines 3 and 4):

Code: Select all

@echo off
set fname=%~n0_$$_%random%
set ext1=.tmp
set ext2=.txt
echo.>"%fname%%ext1%"
echo {1} File "%fname%%ext1%" has been created.
ping -n 10 0.0.0.0>nul
ren "%fname%%ext1%" "%fname%%ext2%"
echo {2} File "%fname%%ext1%" has been renamed to "%fname%%ext2%".
ping -n 10 0.0.0.0>nul
del "%fname%%ext2%"
echo {3} File "%fname%%ext2%" has been deleted.
pause
2. Switch back to TC and don't focus newly created file (if you use inverted cursor, it doesn't show highlighting), just notice its color.
3. When file gets renamed, notice that TC still highlights it with previous color until you refresh panel.

I think TC should check highlighting when it updates some panel items.

TC 8.01x32, Win7SP1.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This is by design: Color filters may take a lot of time, so they are loaded only when you load a new directory, or when a file is added to the list. They are not updated when receiving file change notifications. These notifications are handled once per second, which means that for example if there is a download, the file would have to be checked every second.
Author of Total Commander
https://www.ghisler.com
Post Reply