fix a bug where the script ignored dirs ending in a dot

This commit is contained in:
Martin Grenfell
2009-07-18 00:55:01 +12:00
parent 71ebe27a8d
commit e164980d84
2 changed files with 3 additions and 1 deletions

View File

@@ -1186,7 +1186,7 @@ function! s:TreeDirNode._initChildren(silent)
"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