Using `a.vim` from commit [f3cfbbf](https://github.com/nacitar/a.vim/commit/f3cfbbfcee430e904f93ccf10337cfffb3a69c87): Steps to Reproduce - Create the following directory structure (files can be empty or contain placeholder content): bugtest/AlphaBeta.h bugtest/Beta.cpp bugtest/include/Beta.h - Edit all files: mvim bugtest/AlphaBeta.h bugtest/Beta.cpp bugtest/include/Beta.h - `:n` to advance to `Beta.cpp`. - `:A` should open `Beta.h` but instead opens a new file (buffer) `Beta.h` in the same directory as `Beta.cpp`. - If `AlphaBeta.h` were removed, or renamed to `AlphaGamma.h`, then `:A` works fine on `Beta.cpp` → `Beta.h`. - It seems that `:A` on `Beta.cpp` cannot decide between `include/Beta.h` and `AlphaBeta.h` and so it chooses neither. - In such a case, a filename match (regardless of directory path) should be selected over a string prefix match.