mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
test: fix helpers.relpath()
Missing 3rd argument to string.gsub()
This commit is contained in:
parent
d735567fda
commit
c9240daf73
@ -26,8 +26,7 @@ local module = {
|
|||||||
--- @return string
|
--- @return string
|
||||||
local function relpath(p)
|
local function relpath(p)
|
||||||
p = vim.fs.normalize(p)
|
p = vim.fs.normalize(p)
|
||||||
local cwd = uv.cwd()
|
return (p:gsub('^' .. uv.cwd, ''))
|
||||||
return p:gsub('^' .. cwd)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
--- @param path string
|
--- @param path string
|
||||||
|
Loading…
Reference in New Issue
Block a user