diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-12-15 19:16:24 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-12-15 19:16:24 +0800 |
commit | a2f59497abe5833361ca2825596dbdd4c7213475 (patch) | |
tree | f5c91030aa5a500318b97dcafc346634690bc5f9 /script/core | |
parent | 7b018aa08d0cc2b052c50fba34d94f35a3421683 (diff) | |
download | lua-language-server-a2f59497abe5833361ca2825596dbdd4c7213475.zip |
`FIX` hover: always view string
Diffstat (limited to 'script/core')
-rw-r--r-- | script/core/hover/description.lua | 2 |
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 |