summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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] = ([[