From 303892a7543b5c2e4adabad9b51d76cdf83884be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Fri, 22 Oct 2021 14:28:13 +0800 Subject: cleanup --- script/files.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'script/files.lua') 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 -- cgit v1.2.3