From f7399c6206378b76c87a7386707cf8e24d5a98ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 20 Jun 2022 17:43:58 +0800 Subject: `cast-field-type` --- script/core/find-source.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'script/core/find-source.lua') diff --git a/script/core/find-source.lua b/script/core/find-source.lua index 26a411e5..99013b31 100644 --- a/script/core/find-source.lua +++ b/script/core/find-source.lua @@ -21,7 +21,7 @@ return function (ast, position, accept) end end local start, finish = guide.getStartFinish(source) - if finish - start < len and accept[source.type] then + if finish - start <= len and accept[source.type] then result = source len = finish - start end -- cgit v1.2.3