aboutsummaryrefslogtreecommitdiff
path: root/test/helpers.lua
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2024-01-15 20:16:30 +0000
committerLewis Russell <lewis6991@gmail.com>2024-01-17 10:10:17 +0000
commitc9240daf73bb73d45633670f945ce3c6e780c8ad (patch)
treeae21edce8bb0839961f169fa9a7dc31515e01dc6 /test/helpers.lua
parentd735567fda158b55503a292561399ad97426ad8f (diff)
downloadrneovim-c9240daf73bb73d45633670f945ce3c6e780c8ad.tar.gz
rneovim-c9240daf73bb73d45633670f945ce3c6e780c8ad.tar.bz2
rneovim-c9240daf73bb73d45633670f945ce3c6e780c8ad.zip
test: fix helpers.relpath()
Missing 3rd argument to string.gsub()
Diffstat (limited to 'test/helpers.lua')
-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