summaryrefslogtreecommitdiff
path: root/script-beta/utility.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-12-10 21:09:31 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-12-10 21:09:31 +0800
commit9dd7926771b7b6ad93b919746954bb68bde351a9 (patch)
tree403367b8864daf53d29f9cc4e7c0e71486c58a28 /script-beta/utility.lua
parente87c7b5567053de3d94f06c823a0d0962756b237 (diff)
downloadlua-language-server-9dd7926771b7b6ad93b919746954bb68bde351a9.zip
更新完成
Diffstat (limited to 'script-beta/utility.lua')
-rw-r--r--script-beta/utility.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/script-beta/utility.lua b/script-beta/utility.lua
index 9eaeb955..dfc7f510 100644
--- a/script-beta/utility.lua
+++ b/script-beta/utility.lua
@@ -420,9 +420,6 @@ function m.viewString(str, quo)
end)
return quo .. str:gsub([=[["\r\n]]=], esc) .. quo
else
- if str:find '\r' then
- return m.viewString(str)
- end
local eqnum = #quo - 2
local fsymb = ']' .. ('='):rep(eqnum) .. ']'
if not str:find(fsymb, 1, true) then
@@ -437,7 +434,7 @@ function m.viewString(str, quo)
return ssymb .. str .. fsymb
end
end
- return m.viewString(str)
+ return m.viewString(str, '"')
end
end