summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-26 01:20:16 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-26 01:20:16 +0800
commitde82e9e69e6fde2377c0920b1edad323c8dd81bc (patch)
treeec7cb2a99278a276188abb70f5b01744d941dfba
parent0d441029ddea4d4ef00f0ea49a023f744f55626b (diff)
downloadlua-language-server-de82e9e69e6fde2377c0920b1edad323c8dd81bc.zip
don't show number as is
-rw-r--r--script/core/hover/label.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/hover/label.lua b/script/core/hover/label.lua
index 8224e9d3..f19bca10 100644
--- a/script/core/hover/label.lua
+++ b/script/core/hover/label.lua
@@ -180,7 +180,7 @@ local function asNumber(source)
if not text then
return nil
end
- local raw = text:sub(source.start, source.finish)
+ local raw = text:sub(source.start + 1, source.finish)
if not raw or not raw:find '[^%-%d%.]' then
return nil
end