Skip to content

Commit 0b3c1dc

Browse files
authored
fix: emit init notification on fs menu's add file (#1447)
1 parent 915f64b commit 0b3c1dc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nerdtree_plugin/fs_menu.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ function! NERDTreeAddNode()
211211
call b:NERDTree.render()
212212
elseif parentNode.isOpen || !empty(parentNode.children)
213213
call parentNode.addChild(newTreeNode, 1)
214+
call g:NERDTreePathNotifier.NotifyListeners('init', newTreeNode.path, newTreeNode.getNerdtree(), {})
214215
call NERDTreeRender()
215216
call newTreeNode.putCursorHere(1, 0)
216217
endif

0 commit comments

Comments
 (0)