diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-10-22 11:42:13 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-10-22 11:42:13 +0800 |
commit | 7891bd1f332b6cff17524b97084d1c05144bbf02 (patch) | |
tree | 334b51429d70e43628b112a748eb6c830941011b /script/files.lua | |
parent | 55a7ae620430ab1c82043e920e1b26bbd9d273ce (diff) | |
download | lua-language-server-7891bd1f332b6cff17524b97084d1c05144bbf02.zip |
fix #752
Diffstat (limited to 'script/files.lua')
-rw-r--r-- | script/files.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/script/files.lua b/script/files.lua index 155a6336..dac23b86 100644 --- a/script/files.lua +++ b/script/files.lua @@ -10,7 +10,7 @@ local util = require 'utility' local guide = require 'parser.guide' local smerger = require 'string-merger' local progress = require "progress" -local encoding = require 'encoding' +local encoder = require 'encoder' ---@class files local m = {} @@ -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 = encoding.ansi2utf8(text) + text = encoder.ansi2utf8(text) end end if file.originText == text then |