fix: No scrolling on jumping to error source. (#2438)

When I implemented the changes to allow creating breakpoints without
losing focus in the pattern editor and without forcing it to scroll to
the cursor position I broke the code that ensures the cursor is visible
after being moved to the source code that caused the error. All I needed
to do is to explicitly set the argument because the default is to not
scroll to the cursor when focus is given to the pattern editor
This commit is contained in:
paxcut 2025-09-07 12:31:09 -07:00 committed by GitHub
parent d8dd287cdf
commit d08853df8c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ namespace hex::ui {
setCursorPosition(coords);
ensureCursorVisible();
setFocusAtCoords(coords);
setFocusAtCoords(coords, true);
}
void TextEditor::moveToMatchedBracket(bool select) {