diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-07-02 14:55:37 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-07-02 14:55:37 +0800 |
commit | 6e872740a641bd13f987fac4ee8f44793a58cbe7 (patch) | |
tree | ea31de9d8960339698108503812a4e07298aa340 /script/core | |
parent | 97da24513806acf4c4bf125fbd1c1fafb598ed75 (diff) | |
download | lua-language-server-6e872740a641bd13f987fac4ee8f44793a58cbe7.zip |
算错了
Diffstat (limited to 'script/core')
-rw-r--r-- | script/core/hover/hover.lua | 2 |
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] = ([[ |