From 66045076af488062cb8d486e0abfb33a0042be6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 28 Jan 2021 17:57:04 +0800 Subject: should check originText --- script/files.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'script') 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) -- cgit v1.2.3