summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-12-14 18:17:15 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-12-14 18:17:15 +0800
commit02533355addde9fc95f658390720317a884a33a9 (patch)
tree9449329e4fec5b4e5c855689a167adb7039f56b6
parent8a28e876dd001daec94eb12cf037968f99dc4efe (diff)
downloadlua-language-server-02533355addde9fc95f658390720317a884a33a9.zip
修正一个报错
-rw-r--r--script-beta/parser/guide.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script-beta/parser/guide.lua b/script-beta/parser/guide.lua
index 7680168d..5e2ddd5f 100644
--- a/script-beta/parser/guide.lua
+++ b/script-beta/parser/guide.lua
@@ -634,6 +634,9 @@ function m.getPath(a, b, sameFunction)
break
end
end
+ if not start then
+ return nil
+ end
-- pathA: { 1, 2, 3}
-- pathB: {5, 6, 2, 3}
local extra = 0