sg-s/cpplab

serious bug where the partial matching C++ files can lead to getting the wrong file

Closed this issue · 2 comments

sg-s commented

if a C++ file called wow.hpp exists on your path, and you refer to it using cpplab('wow'), everything works

but then, if you then add a new file called so_wow.hpp, and then add that to your path, your old code is broken because so_wow.hpp will be preferred to wow.hpp

sg-s commented

the way to fix this is to first look for exact matches, and only then fall back to partial matches

sg-s commented

This has been fixed