From 239181bb64923146725c574d79c55c2f4df25ed1 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Sat, 22 Mar 2025 01:18:14 +0300 Subject: [PATCH] fix: editor scroll not reset on file open --- res/layouts/console.xml.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/res/layouts/console.xml.lua b/res/layouts/console.xml.lua index ad1ee727..695408e1 100644 --- a/res/layouts/console.xml.lua +++ b/res/layouts/console.xml.lua @@ -194,6 +194,7 @@ end function open_file_in_editor(filename, line, mutable) local editor = document.editor local source = file.read(filename):gsub('\t', ' ') + editor.scroll = 0 editor.text = source editor.focused = true if line then