Make global symbol search a bit more fuzzy

This commit is contained in:
Jacob Dufault 2017-06-15 19:30:00 -07:00
parent 9d1369786f
commit bb46b38b1c

View File

@ -2312,7 +2312,7 @@ bool QueryDbMainLoop(
break;
}
if (db->detailed_names[i].find(query) != std::string::npos) {
if (SubstringMatch(query, db->detailed_names[i])) {
optional<lsSymbolInformation> info = GetSymbolInfo(db, working_files, db->symbols[i]);
if (!info)
continue;