mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-22 12:31:07 +00:00
Update lua/lazyvim/util/root.lua
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
a78c5286e6
commit
648ff3849b
1 changed files with 1 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ end
|
|||
function M.bufpath(buf)
|
||||
local name = LazyVim.norm(vim.api.nvim_buf_get_name(assert(buf)))
|
||||
local path = name and name:match("^term:/(.+/%d+):") or name
|
||||
-- fix duplicated driver letters for Windows
|
||||
-- fix duplicated drive letters for Windows
|
||||
if vim.fn.has("win32") == 1 and path and path:find(":/.*:/") then
|
||||
path = path:gsub("^.-%:/", "", 1)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue