Added case sensivity for refreshing nodes (#1382)

This commit is contained in:
Ali Rezvani 2023-10-26 00:20:57 +03:30 committed by GitHub
parent 79f6f912f4
commit ff002d2132
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)