aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/helpers.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/helpers.lua b/test/helpers.lua
index 45b39d10b2..c2cb7de6c8 100644
--- a/test/helpers.lua
+++ b/test/helpers.lua
@@ -26,8 +26,7 @@ local module = {
--- @return string
local function relpath(p)
p = vim.fs.normalize(p)
- local cwd = uv.cwd()
- return p:gsub('^' .. cwd)
+ return (p:gsub('^' .. uv.cwd, ''))
end
--- @param path string