From c9240daf73bb73d45633670f945ce3c6e780c8ad Mon Sep 17 00:00:00 2001 From: Lewis Russell Date: Mon, 15 Jan 2024 20:16:30 +0000 Subject: test: fix helpers.relpath() Missing 3rd argument to string.gsub() --- test/helpers.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/helpers.lua') 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 -- cgit