diff --git a/nerdtree_plugin/project.vim b/nerdtree_plugin/project.vim index 861714e..a795b71 100644 --- a/nerdtree_plugin/project.vim +++ b/nerdtree_plugin/project.vim @@ -42,7 +42,7 @@ let g:loaded_nerdtree_project_plugin=1 command! -nargs=1 NERDTreeProjectSave call g:NERDTreeProject.Add(, b:NERDTree) command! -nargs=1 -complete=customlist,NERDTreeCompleteProjectNames NERDTreeProjectLoad call g:NERDTreeProject.Open() command! -nargs=1 -complete=customlist,NERDTreeCompleteProjectNames NERDTreeProjectRm call g:NERDTreeProject.Remove() -command! -nargs=0 -complete=customlist,NERDTreeCompleteProjectNames NERDTreeProjectLoadFromCWD call g:NERDTreeProject.LoadFromCWD() +command! -nargs=? -complete=customlist,NERDTreeCompleteProjectNames NERDTreeProjectLoadFromCWD call g:NERDTreeProject.LoadFromCWD() function! NERDTreeCompleteProjectNames(A,L,P) abort if empty(s:Project.All())