summaryrefslogtreecommitdiff
path: root/server/test
diff options
context:
space:
mode:
Diffstat (limited to 'server/test')
-rw-r--r--server/test/crossfile/hover.lua3
1 files changed, 2 insertions, 1 deletions
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')