Skip to content

Commit

Permalink
impr: Automatically scroll pattern console to the bottom when new lin…
Browse files Browse the repository at this point in the history
…es are added
  • Loading branch information
WerWolv committed Jun 29, 2023
1 parent 4f08ba3 commit bc98556
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion lib/external/imgui/source/TextEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,6 @@ void TextEditor::Render() {

if (mScrollToCursor) {
EnsureCursorVisible();
ImGui::SetWindowFocus();
mScrollToCursor = false;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit bc98556

Please sign in to comment.