From 2e09a0b2206057cec63aedd0540895c5f4511731 Mon Sep 17 00:00:00 2001 From: rzvxa Date: Wed, 25 Oct 2023 23:49:35 +0330 Subject: [PATCH] Added case sensivity for refreshing nodes --- lib/nerdtree/tree_dir_node.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nerdtree/tree_dir_node.vim b/lib/nerdtree/tree_dir_node.vim index 7edc50fa..cfda3c42 100644 --- a/lib/nerdtree/tree_dir_node.vim +++ b/lib/nerdtree/tree_dir_node.vim @@ -576,7 +576,7 @@ function! s:TreeDirNode.refresh() "create a new path and see if it exists in this nodes children let path = g:NERDTreePath.New(i) let newNode = self.getChild(path) - if newNode !=# {} + if newNode !=# {} && path.str() ==# newNode.path.str() call newNode.refresh() call add(newChildNodes, newNode)