瀏覽代碼

HackStudio: Make Locator search case insensitive

Typing "make" should find "Makefile", for example. :^)
Linus Groh 4 年之前
父節點
當前提交
d773795195
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      DevTools/HackStudio/Locator.cpp

+ 1 - 1
DevTools/HackStudio/Locator.cpp

@@ -176,7 +176,7 @@ void Locator::update_suggestions()
     auto typed_text = m_textbox->text();
     Vector<String> 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());