Auto view mode change: 50% match and uneven subfolder count

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

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Lefteous
Power Member
Power Member
Posts: 9537
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Auto view mode change: 50% match and uneven subfolder count

Post by *Lefteous »

This is a quite odd bug. Actually it's completely about oddness.
  1. Define a view mode of your choice
  2. Define the following rule for auto-change view mode: %*\*.txt and assign your test view mode.
  3. Create a folder containing 10 files *.txt and 10 files *.abc and no subfolder (exactly 50% match)
  4. Navigate to folder
  5. View mode has been applied
  6. Create a single subfolder
  7. Go updir and back to folder
  8. View mode is no longer applied
  9. Create a second subfolder
  10. Go updir and back to folder
  11. View mode has been applied!
You can continue to do this forever. The view mode will only be changed automatically if the number of folders is even.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks, I could reproduce it - it's actually a rounding error. I will fix it.
Author of Total Commander
https://www.ghisler.com
User avatar
Lefteous
Power Member
Power Member
Posts: 9537
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

Fixed in beta 3.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks!
Author of Total Commander
https://www.ghisler.com
Post Reply