diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index 2cfb038..1545d53 100644 --- a/plugin/NERD_tree.vim +++ b/plugin/NERD_tree.vim @@ -566,7 +566,7 @@ function! s:oTreeDirNode.InitChildren(silent) dict "filter out the .. and . directories "Note: we must match .. AND ../ cos sometimes the globpath returns "../ for path with strange chars (eg $) - if i !~ '\.\..\?$' && i !~ '\..\?$' + if i !~ '\.\.\/\?$' && i !~ '\.\/\?$' "put the next file in a new node and attach it try