1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 13:00:04 +08:00

fix(projectmanager): skip empty buffer name

This commit is contained in:
wsdjeg 2023-05-31 17:27:02 +08:00
parent c8d8d0f504
commit 8e519e6e6a

View File

@ -397,6 +397,8 @@ function M.current_root()
or bufname:match('denite-filter')
or bufname:match('%[defx%]')
or bufname:match('^git://') -- this is for git.vim
or vim.fn.empty(bufname) == 1
-- or bufname:match('^neo-tree') -- this is for git.vim
then
return
end