From d08853df8c4c5a0203919030c9df3ed2a30ab019 Mon Sep 17 00:00:00 2001 From: paxcut <53811119+paxcut@users.noreply.github.com> Date: Sun, 7 Sep 2025 12:31:09 -0700 Subject: [PATCH] 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 --- plugins/ui/source/ui/text_editor/navigate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/ui/source/ui/text_editor/navigate.cpp b/plugins/ui/source/ui/text_editor/navigate.cpp index 2bc6e7024..c0487b684 100644 --- a/plugins/ui/source/ui/text_editor/navigate.cpp +++ b/plugins/ui/source/ui/text_editor/navigate.cpp @@ -22,7 +22,7 @@ namespace hex::ui { setCursorPosition(coords); ensureCursorVisible(); - setFocusAtCoords(coords); + setFocusAtCoords(coords, true); } void TextEditor::moveToMatchedBracket(bool select) {