mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
fix: strip /
from dirs. Fixes #60
This commit is contained in:
parent
86eaa118c6
commit
540847b7cb
1 changed files with 2 additions and 1 deletions
|
@ -35,7 +35,8 @@ function M.norm(path)
|
|||
end
|
||||
path = home .. path:sub(2)
|
||||
end
|
||||
return path:gsub("\\", "/")
|
||||
path = path:gsub("\\", "/")
|
||||
return path:sub(-1) == "/" and path:sub(1, -2) or path
|
||||
end
|
||||
|
||||
function M.try(fn, msg)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue