mirror of
https://github.com/preservim/nerdtree.git
synced 2025-02-15 22:42:44 +08:00
make TreeDirNode#openRecursively2 private
This commit is contained in:
parent
a8cd995624
commit
cf8c54689b
|
@ -920,16 +920,14 @@ function! s:TreeDirNode.openRecursively()
|
||||||
call self.openRecursively2(1)
|
call self.openRecursively2(1)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
"FUNCTION: TreeDirNode.openRecursively2() {{{3
|
"FUNCTION: TreeDirNode._openRecursively2() {{{3
|
||||||
"Dont call this method from outside this object.
|
|
||||||
"
|
|
||||||
"Opens this all children of this treenode recursively if either:
|
"Opens this all children of this treenode recursively if either:
|
||||||
" *they arent filtered by file filters
|
" *they arent filtered by file filters
|
||||||
" *a:forceOpen is 1
|
" *a:forceOpen is 1
|
||||||
"
|
"
|
||||||
"Args:
|
"Args:
|
||||||
"forceOpen: 1 if this node should be opened regardless of file filters
|
"forceOpen: 1 if this node should be opened regardless of file filters
|
||||||
function! s:TreeDirNode.openRecursively2(forceOpen)
|
function! s:TreeDirNode._openRecursively2(forceOpen)
|
||||||
if self.path.ignore() == 0 || a:forceOpen
|
if self.path.ignore() == 0 || a:forceOpen
|
||||||
let self.isOpen = 1
|
let self.isOpen = 1
|
||||||
if self.children == []
|
if self.children == []
|
||||||
|
|
Loading…
Reference in New Issue
Block a user