Skip to content
Snippets Groups Projects
Commit 5b893a1b authored by 最萌小汐's avatar 最萌小汐
Browse files

修正一些bug

parent 681c101c
No related branches found
No related tags found
No related merge requests found
......@@ -72,6 +72,7 @@ function m.setText(uri, text)
return
end
file.text = text
file.lines = nil
m.globalVersion = m.globalVersion + 1
if not m.needRefreshUri then
m.needRefreshUri = {}
......@@ -94,7 +95,6 @@ function m.refresh()
for file in pairs(refreshed) do
lastFile = file
file.vm = nil
file.lines = nil
file.ast = nil
file.globals = nil
file.links = nil
......
......@@ -9,7 +9,7 @@ function mt:add(language, text)
if language == 'lua' then
self[#self+1] = ('```lua\n%s\n```'):format(text)
else
self[#self+1] = text:gsub('\n', '\n\n')
self[#self+1] = text
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment