mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 18:58:12 +00:00
parent
ea44a2d4c2
commit
1069d78334
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ function M.truncpath(path, len, opts)
|
|||
local home = vim.fs.normalize("~")
|
||||
path = vim.fs.normalize(path, { _fast = true, expand_env = false })
|
||||
|
||||
if path:find(cwd, 1, true) == 1 and #path > #cwd then
|
||||
if path:find(cwd .. "/", 1, true) == 1 and #path > #cwd then
|
||||
path = path:sub(#cwd + 2)
|
||||
else
|
||||
local root = Snacks.git.get_root(path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue