From a283c0e03ef3f5822e451a5a7b079cec00d372e3 Mon Sep 17 00:00:00 2001 From: Xuyuan Pang Date: Mon, 1 Sep 2014 16:25:27 +0800 Subject: [PATCH] fix #363 --- lib/nerdtree/creator.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/nerdtree/creator.vim b/lib/nerdtree/creator.vim index 86f951a..ee3a199 100644 --- a/lib/nerdtree/creator.vim +++ b/lib/nerdtree/creator.vim @@ -43,6 +43,10 @@ endfunction function! s:Creator.createPrimary(name) let path = self._pathForString(a:name) + if path == 0 + return + endif + "if instructed to, then change the vim CWD to the dir the NERDTree is "inited in if g:NERDTreeChDirMode != 0