mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 13:05:25 -05:00
impr: Automatically scroll pattern console to the bottom when new lines are added
This commit is contained in:
1
lib/external/imgui/source/TextEditor.cpp
vendored
1
lib/external/imgui/source/TextEditor.cpp
vendored
@@ -990,7 +990,6 @@ void TextEditor::Render() {
|
||||
|
||||
if (mScrollToCursor) {
|
||||
EnsureCursorVisible();
|
||||
ImGui::SetWindowFocus();
|
||||
mScrollToCursor = false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -302,6 +302,7 @@ namespace hex::plugin::builtin {
|
||||
std::scoped_lock lock(this->m_logMutex);
|
||||
|
||||
this->m_consoleEditor.SetTextLines(*this->m_console);
|
||||
this->m_consoleEditor.SetCursorPosition({ int(this->m_consoleEditor.GetTextLines().size()), 0 });
|
||||
this->m_consoleNeedsUpdate = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user