Skip to content

Commit e164980

Browse files
author
Martin Grenfell
committed
fix a bug where the script ignored dirs ending in a dot
1 parent 71ebe27 commit e164980

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

doc/NERD_tree.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,6 +1000,8 @@ The latest dev versions are on github
10001000
Next release:
10011001
- fix a bug where secondary nerd trees (netrw hijacked trees) and
10021002
NERDTreeQuitOnOpen didnt play nicely, thanks to Curtis Harvey.
1003+
- fix a bug where the script ignored directories whose name ended in a dot,
1004+
thanks to Aggelos Orfanakos for the patch.
10031005

10041006
3.1.1
10051007
- fix a bug where a non-listed no-name buffer was getting created every

plugin/NERD_tree.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1186,7 +1186,7 @@ function! s:TreeDirNode._initChildren(silent)
11861186
"filter out the .. and . directories
11871187
"Note: we must match .. AND ../ cos sometimes the globpath returns
11881188
"../ for path with strange chars (eg $)
1189-
if i !~ '\.\.\/\?$' && i !~ '\.\/\?$'
1189+
if i !~ '^\.\.\/\?$' && i !~ '^\.\/\?$'
11901190

11911191
"put the next file in a new node and attach it
11921192
try

0 commit comments

Comments
 (0)