From 763fc5cc9554ae26d364d4080b070596428bc51a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Sat, 30 Mar 2019 15:26:57 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/core/definition.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/src') diff --git a/server/src/core/definition.lua b/server/src/core/definition.lua index fe8db860..a7296bfb 100644 --- a/server/src/core/definition.lua +++ b/server/src/core/definition.lua @@ -107,7 +107,7 @@ local function parseLocal(vm, source, lsp) local value = source:bindValue() if value and value.uri ~= '' and value.uri ~= vm.uri then local positions = parseValueCrossFile(vm, source, lsp) - if #positions > 0 then + if positions and #positions > 0 then return positions end end -- cgit v1.2.3