fix(lualine): make sure path is in root before substituting
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user