mirror of
https://github.com/preservim/nerdtree.git
synced 2025-01-31 07:35:00 +08:00
bugfix in fs_menu plugin
This commit is contained in:
parent
891f0ed3a2
commit
eef8a7b280
|
@ -66,7 +66,7 @@ function! NERDTreeAddNode()
|
|||
|
||||
try
|
||||
let newPath = g:NERDTreePath.Create(newNodeName)
|
||||
let parentNode = b:NERDTreeRoot.findNode(newPath.getPathTrunk())
|
||||
let parentNode = b:NERDTreeRoot.findNode(newPath.getParent())
|
||||
|
||||
let newTreeNode = g:NERDTreeFileNode.New(newPath)
|
||||
if parentNode.isOpen || !empty(parentNode.children)
|
||||
|
|
Loading…
Reference in New Issue
Block a user