From 0c13ebc126f03b6336f2adb59ba6385bb4edfe5d Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Fri, 13 Nov 2015 15:08:01 +0000 Subject: [PATCH] remove some old commented code --- lib/nerdtree/tree_dir_node.vim | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/nerdtree/tree_dir_node.vim b/lib/nerdtree/tree_dir_node.vim index 765982d..a1e4214 100644 --- a/lib/nerdtree/tree_dir_node.vim +++ b/lib/nerdtree/tree_dir_node.vim @@ -244,13 +244,9 @@ function! s:TreeDirNode._initChildren(silent) for i in files "filter out the .. and . directories - "Note: we must match .. AND ../ cos sometimes the globpath returns + "Note: we must match .. AND ../ since sometimes the globpath returns "../ for path with strange chars (eg $) -" if i !~# '\/\.\.\/\?$' && i !~# '\/\.\/\?$' -" - " Regular expression is too expensive. Use simply string comparison - " instead - if i[len(i)-3:2] != ".." && i[len(i)-2:2] != ".." && + if i[len(i)-3:2] != ".." && i[len(i)-2:2] != ".." && \ i[len(i)-2:1] != "." && i[len(i)-1] != "." "put the next file in a new node and attach it try