mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
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:
@@ -22,7 +22,7 @@ namespace hex::ui {
|
||||
setCursorPosition(coords);
|
||||
ensureCursorVisible();
|
||||
|
||||
setFocusAtCoords(coords);
|
||||
setFocusAtCoords(coords, true);
|
||||
}
|
||||
|
||||
void TextEditor::moveToMatchedBracket(bool select) {
|
||||
|
||||
Reference in New Issue
Block a user