ImGui: reset horizontal scroll position when command has been submitted

Small UX improvement.
This commit is contained in:
Kawe Mazidjatari 2024-02-29 01:00:24 +01:00
parent 79e457fcf8
commit f9ed276cbd

View File

@ -681,6 +681,8 @@ void CConsole::ProcessCommand(string svCommand)
m_nHistoryPos = PositionMode_t::kPark;
AddHistory(svCommand.c_str());
m_Logger.ShouldScrollToStart(true);
m_Logger.ShouldScrollToBottom(true);
}