Check for unknown current working directory
This commit is contained in:
parent
5442d5e04a
commit
2cd4331b78
@ -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/
|
||||
|
Loading…
Reference in New Issue
Block a user