From 816d3d5df8faaab2175537ca163e0cc78835b548 Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Mon, 6 Dec 2021 14:12:54 +0100 Subject: [PATCH] Re-add split history (?) --- src/TConsole.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/TConsole.cpp b/src/TConsole.cpp index 7ef2f04..74d257c 100644 --- a/src/TConsole.cpp +++ b/src/TConsole.cpp @@ -113,8 +113,8 @@ void TConsole::ChangeToLuaConsole(const std::string& LuaStateId) { Application::Console().WriteRaw("Entered Lua console. To exit, type `exit()`"); mCommandline.set_prompt("lua> "); } - // mCachedRegularHistory = mCommandline.history(); - // mCommandline.set_history(mCachedLuaHistory); + mCachedRegularHistory = mCommandline.history(); + mCommandline.set_history(mCachedLuaHistory); } } @@ -126,8 +126,8 @@ void TConsole::ChangeToRegularConsole() { } else { Application::Console().WriteRaw("Left Lua console."); } - // mCachedLuaHistory = mCommandline.history(); - // mCommandline.set_history(mCachedRegularHistory); + mCachedLuaHistory = mCommandline.history(); + mCommandline.set_history(mCachedRegularHistory); mCommandline.set_prompt("> "); mStateId = mDefaultStateId; }