diff options
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 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 |