summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-07-09 14:10:48 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-07-09 14:10:48 +0800
commit6c4df5860bfc6e1f011dbfebaaad4ef63bd2a542 (patch)
tree3973328f9ea2b29a3fa6c567627a96196116054e
parentae3a20cfd5ea89919326a6499c5a3c93fdfe2120 (diff)
downloadlua-language-server-6c4df5860bfc6e1f011dbfebaaad4ef63bd2a542.zip
fix #192
-rw-r--r--script/core/hover/hover.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/hover/hover.lua b/script/core/hover/hover.lua
index 5140edb2..76505ca4 100644
--- a/script/core/hover/hover.lua
+++ b/script/core/hover/hover.lua
@@ -370,7 +370,7 @@ local function hoverAsNumber(source)
return nil
end
local raw = source[2]
- if not raw:find '[^%-%d%.]' then
+ if not raw or not raw:find '[^%-%d%.]' then
return nil
end
return {