mirror of
https://github.com/preservim/nerdtree.git
synced 2024-11-25 09:41:03 +08:00
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