From d773795195cdaab4c8902bedafd1399f519d26e4 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Thu, 12 Nov 2020 22:11:40 +0000 Subject: [PATCH] HackStudio: Make Locator search case insensitive Typing "make" should find "Makefile", for example. :^) --- DevTools/HackStudio/Locator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DevTools/HackStudio/Locator.cpp b/DevTools/HackStudio/Locator.cpp index 7c8e56f1892..8c856aa693a 100644 --- a/DevTools/HackStudio/Locator.cpp +++ b/DevTools/HackStudio/Locator.cpp @@ -176,7 +176,7 @@ void Locator::update_suggestions() auto typed_text = m_textbox->text(); Vector suggestions; 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()); }); dbgln("I have {} suggestion(s):", suggestions.size());