From 2c03916d424ec71643744957d3170d0cf371dd8f Mon Sep 17 00:00:00 2001 From: Federico Cecchetto Date: Tue, 28 Dec 2021 21:41:11 +0100 Subject: [PATCH] Tiny fix --- src/client/component/gui_console.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/client/component/gui_console.cpp b/src/client/component/gui_console.cpp index dc32e1fb..452bf557 100644 --- a/src/client/component/gui_console.cpp +++ b/src/client/component/gui_console.cpp @@ -159,7 +159,14 @@ namespace gui_console ImGui::BeginChild("console_scroll", ImVec2(0, -footer_height_to_reserve), false); - ImGui::Text(filtered_text.data(), ImVec2(-1, -1)); + const auto output = game_console::get_output(); + for (const auto& line : output) + { + if (utils::string::find_lower(line, filter)) + { + ImGui::Text(line.data(), ImVec2(-1, -1)); + } + } if (auto_scroll && ImGui::GetScrollY() >= ImGui::GetScrollMaxY()) {