From ee5f66fbbb36a4ae8fbc05e0c6496ab0fb4ea121 Mon Sep 17 00:00:00 2001 From: itdominator <1itdominator@gmail.com> Date: Sun, 8 Mar 2026 15:09:19 -0500 Subject: [PATCH] Fix on load scroll pointer to view --- .../code/command_system/commands/dnd_load_file_to_buffer.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/widgets/code/command_system/commands/dnd_load_file_to_buffer.py b/src/core/widgets/code/command_system/commands/dnd_load_file_to_buffer.py index 165ad5f..4c7b791 100644 --- a/src/core/widgets/code/command_system/commands/dnd_load_file_to_buffer.py +++ b/src/core/widgets/code/command_system/commands/dnd_load_file_to_buffer.py @@ -34,3 +34,7 @@ def execute( update_info_bar_if_focused(view.command, view) view.emit("focus-in-event", Gdk.Event()) + + buffer = view.get_buffer() + itr = buffer.get_iter_at_mark( buffer.get_insert() ) + view.scroll_to_iter(itr, 0.2, False, 0, 0)