summaryrefslogtreecommitdiff
path: root/script/files.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-10-22 14:28:13 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-10-22 14:28:13 +0800
commit303892a7543b5c2e4adabad9b51d76cdf83884be (patch)
tree5511e61b2de6e3cef0bbfa1e84e4bf6b47ee6bdb /script/files.lua
parent7891bd1f332b6cff17524b97084d1c05144bbf02 (diff)
downloadlua-language-server-303892a7543b5c2e4adabad9b51d76cdf83884be.zip
cleanup
Diffstat (limited to 'script/files.lua')
-rw-r--r--script/files.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/files.lua b/script/files.lua
index dac23b86..566b012c 100644
--- a/script/files.lua
+++ b/script/files.lua
@@ -141,7 +141,7 @@ function m.setText(uri, text, isTrust, instance)
end
if not isTrust then
if config.get 'Lua.runtime.fileEncoding' == 'ansi' then
- text = encoder.ansi2utf8(text)
+ text = encoder.ansi.decode(text)
end
end
if file.originText == text then