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:
parent
c8d8d0f504
commit
8e519e6e6a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user