Re-add split history (?)

This commit is contained in:
Lion Kortlepel
2021-12-06 14:12:54 +01:00
parent 817a146699
commit 816d3d5df8

View File

@@ -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;
}