summaryrefslogtreecommitdiff
path: root/script/core/diagnostics/circle-doc-class.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-11 19:03:11 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-11 19:03:11 +0800
commit3b642df7cb6730f35342803089f2d6d495ddd554 (patch)
treebc767efc6c1c12fcb17024217d3adfd844af9922 /script/core/diagnostics/circle-doc-class.lua
parent2e4f530b33467b94376321c7f9879f2a879429bb (diff)
downloadlua-language-server-3b642df7cb6730f35342803089f2d6d495ddd554.zip
fix #1037
Diffstat (limited to 'script/core/diagnostics/circle-doc-class.lua')
-rw-r--r--script/core/diagnostics/circle-doc-class.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/diagnostics/circle-doc-class.lua b/script/core/diagnostics/circle-doc-class.lua
index 9a3fa2f5..40d4afeb 100644
--- a/script/core/diagnostics/circle-doc-class.lua
+++ b/script/core/diagnostics/circle-doc-class.lua
@@ -37,7 +37,7 @@ return function (uri, callback)
}
goto CONTINUE
end
- if not mark[newName] then
+ if newName and not mark[newName] then
mark[newName] = true
local docs = vm.getDocSets(uri, newName)
for _, otherDoc in ipairs(docs) do