mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-23 17:49:57 +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('denite-filter')
|
||||||
or bufname:match('%[defx%]')
|
or bufname:match('%[defx%]')
|
||||||
or bufname:match('^git://') -- this is for git.vim
|
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
|
then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user