From e42256dd5f1ca772c774124d26fb7b78daea2687 Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Sun, 8 Nov 2020 14:21:44 +0100 Subject: [PATCH] Shrink history size to 10 soft 20 hard --- src/Console.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Console.cpp b/src/Console.cpp index 7e87396..c517f66 100644 --- a/src/Console.cpp +++ b/src/Console.cpp @@ -152,7 +152,7 @@ static void ProcessCompositeInput() { CInputBuff += CompositeInput; } // ensure history doesnt grow too far beyond a max - static constexpr size_t MaxHistory = 30; + static constexpr size_t MaxHistory = 10; if (ConsoleHistory.size() > 2 * MaxHistory) { std::vector NewHistory(ConsoleHistory.begin() + ConsoleHistory.size() - MaxHistory, ConsoleHistory.end()); ConsoleHistory = std::move(NewHistory);