commit c9240daf73bb73d45633670f945ce3c6e780c8ad
parent d735567fda158b55503a292561399ad97426ad8f
Author: Lewis Russell <lewis6991@gmail.com>
Date: Mon, 15 Jan 2024 20:16:30 +0000
test: fix helpers.relpath()
Missing 3rd argument to string.gsub()
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git 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