summaryrefslogtreecommitdiff
path: root/script/files.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-01-28 17:57:04 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-01-28 17:57:04 +0800
commit66045076af488062cb8d486e0abfb33a0042be6d (patch)
treead2334413c9c6a8199fe222534597d194034fa76 /script/files.lua
parent8a3801e409959cc3f0d73d5048e20a539a76afc7 (diff)
downloadlua-language-server-66045076af488062cb8d486e0abfb33a0042be6d.zip
should check originText
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 c0d5fe2e..57f51af3 100644
--- a/script/files.lua
+++ b/script/files.lua
@@ -145,7 +145,7 @@ function m.setText(uri, text, isTrust)
if file.trusted and not isTrust then
return
end
- if file.text == text then
+ if file.originText == text then
return
end
local newText = pluginOnSetText(file, text)