summaryrefslogtreecommitdiff
path: root/script/core/hover/description.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/hover/description.lua')
-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 725ea7a5..1af459c3 100644
--- a/script/core/hover/description.lua
+++ b/script/core/hover/description.lua
@@ -63,7 +63,7 @@ end
local function asStringView(source, literal)
-- 内部包含转义符?
- local rawLen = source.finish - source.start - 2 * #source[2] + 1
+ local rawLen = source.finish - source.start - 2 * #source[2]
if config.get 'Lua.hover.viewString'
and (source[2] == '"' or source[2] == "'")
and rawLen > #literal then