summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-12-18 18:00:00 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-12-18 18:00:00 +0800
commitc3ce2f6b7d8da3d992bdbeb808db9ee89a63665b (patch)
tree87003ee86ffa03bc9f904a73a91b19eef2a654aa /script/core
parent86208f336c8652c3db1c0bf52561f1cf24c60d8b (diff)
downloadlua-language-server-c3ce2f6b7d8da3d992bdbeb808db9ee89a63665b.zip
fix #267
Diffstat (limited to 'script/core')
-rw-r--r--script/core/hover/description.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/hover/description.lua b/script/core/hover/description.lua
index f9a0fc1d..570dec3f 100644
--- a/script/core/hover/description.lua
+++ b/script/core/hover/description.lua
@@ -109,7 +109,7 @@ end
local function buildEnumChunk(docType, name)
local enums = vm.getDocEnums(docType)
- if #enums == 0 then
+ if not enums or #enums == 0 then
return
end
local types = {}