diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-01-28 17:04:12 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-01-28 17:04:12 +0800 |
commit | 6bc61fd0667b0f05ed225fe0f108e7ce96279291 (patch) | |
tree | 037b0e6977bfbcedbf1567fb825d3952de4eabc7 /script | |
parent | 17441837e8e9e2f400794fde0f6473ba10ea288f (diff) | |
download | lua-language-server-6bc61fd0667b0f05ed225fe0f108e7ce96279291.zip |
#362
Diffstat (limited to 'script')
-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 710d73bf..c0d5fe2e 100644 --- a/script/files.lua +++ b/script/files.lua @@ -145,10 +145,10 @@ function m.setText(uri, text, isTrust) if file.trusted and not isTrust then return end - local newText = pluginOnSetText(file, text) - if file.text == newText then + if file.text == text then return end + local newText = pluginOnSetText(file, text) file.text = newText file.trusted = isTrust file.originText = text |