mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix: editor scroll not reset on file open
This commit is contained in:
parent
4aa97cc5d0
commit
239181bb64
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue