1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 08:27:45 +00:00

HackStudio: Make Locator search case insensitive

Typing "make" should find "Makefile", for example. :^)
This commit is contained in:
Linus Groh 2020-11-12 22:11:40 +00:00 committed by Andreas Kling
parent 39ce7251f7
commit d773795195

View file

@ -176,7 +176,7 @@ void Locator::update_suggestions()
auto typed_text = m_textbox->text(); auto typed_text = m_textbox->text();
Vector<String> suggestions; Vector<String> suggestions;
project().for_each_text_file([&](auto& file) { project().for_each_text_file([&](auto& file) {
if (file.name().contains(typed_text)) if (file.name().contains(typed_text, CaseSensitivity::CaseInsensitive))
suggestions.append(file.name()); suggestions.append(file.name());
}); });
dbgln("I have {} suggestion(s):", suggestions.size()); dbgln("I have {} suggestion(s):", suggestions.size());