Re-add split history (?)

This commit is contained in:
Lion Kortlepel 2021-12-06 14:12:54 +01:00
parent 817a146699
commit 816d3d5df8
No known key found for this signature in database
GPG Key ID: 4322FF2B4C71259B

View File

@ -113,8 +113,8 @@ void TConsole::ChangeToLuaConsole(const std::string& LuaStateId) {
Application::Console().WriteRaw("Entered Lua console. To exit, type `exit()`"); Application::Console().WriteRaw("Entered Lua console. To exit, type `exit()`");
mCommandline.set_prompt("lua> "); mCommandline.set_prompt("lua> ");
} }
// mCachedRegularHistory = mCommandline.history(); mCachedRegularHistory = mCommandline.history();
// mCommandline.set_history(mCachedLuaHistory); mCommandline.set_history(mCachedLuaHistory);
} }
} }
@ -126,8 +126,8 @@ void TConsole::ChangeToRegularConsole() {
} else { } else {
Application::Console().WriteRaw("Left Lua console."); Application::Console().WriteRaw("Left Lua console.");
} }
// mCachedLuaHistory = mCommandline.history(); mCachedLuaHistory = mCommandline.history();
// mCommandline.set_history(mCachedRegularHistory); mCommandline.set_history(mCachedRegularHistory);
mCommandline.set_prompt("> "); mCommandline.set_prompt("> ");
mStateId = mDefaultStateId; mStateId = mDefaultStateId;
} }