Check for unknown current working directory

This commit is contained in:
Jason Franklin 2018-09-10 09:00:05 -04:00
parent 5442d5e04a
commit 2cd4331b78

View File

@ -203,6 +203,11 @@ endfunction
function! NERDTreeCWD()
if empty(getcwd())
call nerdtree#echoWarning('current directory does not exist')
return
endif
try
let l:cwdPath = g:NERDTreePath.New(getcwd())
catch /^NERDTree.InvalidArgumentsError/