mirror of
https://github.com/lewis6991/gitsigns.nvim
synced 2024-09-16 14:34:09 +02:00
fix(attach): resolve error viewing fugitive trees (#1058)
This commit is contained in:
parent
651d5ed082
commit
89a4dce7c9
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ local function get_buf_path(bufnr)
|
|||
dprintf("Fugitive buffer for file '%s' from path '%s'", path, file)
|
||||
if path then
|
||||
local realpath = uv.fs_realpath(path)
|
||||
if realpath then
|
||||
if realpath and vim.fn.isdirectory(realpath) == 0 then
|
||||
return realpath, commit, true
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue