fix(lualine): make sure path is in root before substituting

This commit is contained in:
Folke Lemaitre
2024-11-07 17:01:08 +01:00
parent d017bb861e
commit 67b216c973

View File

@ -96,7 +96,7 @@ function M.pretty_path(opts)
if opts.relative == "cwd" and path:find(cwd, 1, true) == 1 then
path = path:sub(#cwd + 2)
else
elseif path:find(root, 1, true) == 1 then
path = path:sub(#root + 2)
end