summaryrefslogtreecommitdiff
path: root/script/files.lua
diff options
context:
space:
mode:
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