From 7ea152ca14332a637b4b2eb6f1fda103ceb7377b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 16 Jun 2021 20:12:06 +0800 Subject: fix --- script/core/highlight.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'script') diff --git a/script/core/highlight.lua b/script/core/highlight.lua index 3ae4dcb2..d1f11906 100644 --- a/script/core/highlight.lua +++ b/script/core/highlight.lua @@ -265,6 +265,9 @@ return function (uri, offset) if isLiteral ~= isLiteralValue(target) then return end + if not files.eq(uri, guide.getUri(target)) then + return + end local kind if target.type == 'getfield' then target = target.field -- cgit v1.2.3