fix: editor scroll not reset on file open

This commit is contained in:
MihailRis 2025-03-22 01:18:14 +03:00
parent 4aa97cc5d0
commit 239181bb64

View File

@ -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