summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-07-02 14:55:37 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-07-02 14:55:37 +0800
commit6e872740a641bd13f987fac4ee8f44793a58cbe7 (patch)
treeea31de9d8960339698108503812a4e07298aa340 /script/core
parent97da24513806acf4c4bf125fbd1c1fafb598ed75 (diff)
downloadlua-language-server-6e872740a641bd13f987fac4ee8f44793a58cbe7.zip
算错了
Diffstat (limited to 'script/core')
-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 073886ad..d94c73c2 100644
--- a/script/core/hover/hover.lua
+++ b/script/core/hover/hover.lua
@@ -325,7 +325,7 @@ local function hoverAsString(source)
lines[#lines+1] = lang.script('HOVER_STRING_CHARACTERS', len, charLen)
end
-- 内部包含转义符?
- local rawLen = source.finish - source.start - 2 * #source[2]
+ local rawLen = source.finish - source.start - 2 * #source[2] + 1
if rawLen > #str then
lines[#lines+1] = ([[