import '\t' to editor as 4 spaces
This commit is contained in:
parent
6736613dc2
commit
6e0434c5c8
@ -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()"..
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user