To reproduce:
1. Set the following View modes/rules
2. Make a folder c:\test[ViewModeSwitch]
Enabled=1
0_rules=+*\totalcmd\*\
0_mode=2
1_rules=L
1_mode=1
[ViewModes]
0_name=<Standard>
0_icon=%COMMANDER_EXE%,6
0_options=-1|-1|0||-1|-1|-1
1_name=Folder
1_icon=*%COMMANDER_EXE%,6
1_commands=*cm_SrcAllFiles
1_options=-1|-1|0||-1|-1|-1
2_name=Programs
2_icon=%COMMANDER_PATH%\wcmicons.dll,12
2_commands=cm_SrcExecs
2_options=-1|-1|0||-1|-1|-1
3. Open a folder tab and go to c:\test
4. Either Right-click on the folder tab and choose the "Programs" view mode or use "Show" -> "Custom View Modes" -> "Programs"
5: The Curent Directory bar now shows: c:\test\*.EXE;*COM;*BAT;*.CMD
6. Go to c:\
In TC9b10 the Curent Directory bar now - as expected - shows: c:\*.*
In TC9B11 the Curent Directory bar now unexpectedly still shows: c:\*.EXE;*COM;*BAT;*.CMD
This only happens in Folder tabs - not when there is no tabs
It works correctly if I replace step 4 with a press on Ctrl+F11.
If I switch step 3 and 4 it works correctly.
I guess it has to do vith:
But that doesn't explain why it is handled differently with and without Folder tabs - and this might not always be desired behaviour - so maybe this should be made optional - or at least the asterisk in front of the internal command should be respected!23.08.16 Added: When user changes the view mode manually while automatic view mode switching is enabled, keep that view mode until the directory changes to a location with a different view mode rule>0 (32/64)