From 8cd045d0e231a77769d9bd166fec9736c21a3a5c Mon Sep 17 00:00:00 2001 From: Xuyuan Pang Date: Sat, 19 Jul 2014 17:57:41 +0800 Subject: [PATCH] add refreshDirFlags method to avoid refreshing too many files --- lib/nerdtree/tree_dir_node.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/nerdtree/tree_dir_node.vim b/lib/nerdtree/tree_dir_node.vim index 3f11e93..a24c270 100644 --- a/lib/nerdtree/tree_dir_node.vim +++ b/lib/nerdtree/tree_dir_node.vim @@ -448,6 +448,11 @@ function! s:TreeDirNode.refreshFlags() endfor endfunction +"FUNCTION: TreeDirNode.refreshDirFlags() {{{1 +function! s:TreeDirNode.refreshDirFlags() + call self.path.refreshFlags() +endfunction + "FUNCTION: TreeDirNode.reveal(path) {{{1 "reveal the given path, i.e. cache and open all treenodes needed to display it "in the UI