Select unused materials - bug

Showing subset of unused materials.

If I delete them one by one, then all works fine.

If I select all of them at once … See here:

Only the 10 materials are selected. But it reports 96 item selected. So when I try to Delete unused materials, it wants to delete all the materials in the file.

Some kind of bug here. I did some experiments:

I tested marking each material by shift clicking them in the list above. Starting at the bottom. It worked for two items and then it jumped to 5 and after the next one to 67 …

Then I tried Ctrl-clicking them, and that worked for all.

And Select from the right-click dropdown worked.

So why do we have both Shift-click (not working) and Ctrl-click (working) ?

Thanks

/Erik

and then try to delete them I get: