From ae53ebf48299680b8906e848903fb32d56ee90a5 Mon Sep 17 00:00:00 2001 From: xl000 Date: Wed, 17 Apr 2019 01:16:12 +0800 Subject: =?UTF-8?q?Unix-like=E7=B3=BB=E7=BB=9F=E8=B7=AF=E5=BE=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=EF=BC=8Cosx=E4=B8=8B=E6=B5=8B=E8=AF=95=E9=80=9A?= =?UTF-8?q?=E8=BF=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/test/crossfile/hover.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server/test') diff --git a/server/test/crossfile/hover.lua b/server/test/crossfile/hover.lua index cdc4ebca..41aef8dc 100644 --- a/server/test/crossfile/hover.lua +++ b/server/test/crossfile/hover.lua @@ -76,7 +76,8 @@ function TEST(data) local hover = core.hover(source, lsp) assert(hover) if data.hover.description then - data.hover.description = data.hover.description:gsub('%$ROOT%$', ws:uriEncode(ROOT):gsub('%%', '%%%%')) + local uriROOT = ws:uriEncode(ROOT):gsub('%%', '%%%%') + data.hover.description = data.hover.description:gsub('%$ROOT%$', uriROOT) end if hover.label then hover.label = hover.label:gsub('\r\n', '\n') -- cgit v1.2.3