import '\t' to editor as 4 spaces

This commit is contained in:
MihailRis 2024-11-19 08:56:07 +03:00
parent 6736613dc2
commit 6e0434c5c8

View File

@ -63,7 +63,7 @@ events.on("core:open_traceback", function(traceback_b64)
if file.exists(frame.source) then if file.exists(frame.source) then
callback = string.format( callback = string.format(
"local editor = document.editor ".. "local editor = document.editor "..
"local source = file.read('%s') ".. "local source = file.read('%s'):gsub('\t', ' ') "..
"editor.text = source ".. "editor.text = source "..
"editor.focused = true ".. "editor.focused = true "..
"time.post_runnable(function()".. "time.post_runnable(function()"..