Check for unknown current working directory
This commit is contained in:
parent
5442d5e04a
commit
2cd4331b78
@ -203,6 +203,11 @@ endfunction
|
|||||||
|
|
||||||
function! NERDTreeCWD()
|
function! NERDTreeCWD()
|
||||||
|
|
||||||
|
if empty(getcwd())
|
||||||
|
call nerdtree#echoWarning('current directory does not exist')
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
|
||||||
try
|
try
|
||||||
let l:cwdPath = g:NERDTreePath.New(getcwd())
|
let l:cwdPath = g:NERDTreePath.New(getcwd())
|
||||||
catch /^NERDTree.InvalidArgumentsError/
|
catch /^NERDTree.InvalidArgumentsError/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user