mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-08 11:23:48 -05:00
bugfix: use TreeDirNode.GetSelected() instead of getSelectedDir()
This commit is contained in:
@@ -3134,7 +3134,7 @@ endfunction
|
|||||||
" FUNCTION: s:closeChildren() {{{2
|
" FUNCTION: s:closeChildren() {{{2
|
||||||
" closes all childnodes of the current node
|
" closes all childnodes of the current node
|
||||||
function! s:closeChildren()
|
function! s:closeChildren()
|
||||||
let currentNode = s:getSelectedDir()
|
let currentNode = s:TreeDirNode.GetSelected()
|
||||||
if currentNode == {}
|
if currentNode == {}
|
||||||
call s:echo("Select a node first")
|
call s:echo("Select a node first")
|
||||||
return
|
return
|
||||||
@@ -3325,7 +3325,7 @@ endfunction
|
|||||||
" FUNCTION: s:insertNewNode() {{{2
|
" FUNCTION: s:insertNewNode() {{{2
|
||||||
" Adds a new node to the filesystem and then into the tree
|
" Adds a new node to the filesystem and then into the tree
|
||||||
function! s:insertNewNode()
|
function! s:insertNewNode()
|
||||||
let curDirNode = s:getSelectedDir()
|
let curDirNode = s:TreeDirNode.GetSelected()
|
||||||
if curDirNode == {}
|
if curDirNode == {}
|
||||||
call s:echo("Put the cursor on a node first" )
|
call s:echo("Put the cursor on a node first" )
|
||||||
return
|
return
|
||||||
@@ -3449,7 +3449,7 @@ endfunction
|
|||||||
|
|
||||||
" FUNCTION: s:openExplorer() {{{2
|
" FUNCTION: s:openExplorer() {{{2
|
||||||
function! s:openExplorer()
|
function! s:openExplorer()
|
||||||
let treenode = s:getSelectedDir()
|
let treenode = s:TreeDirNode.GetSelected()
|
||||||
if treenode != {}
|
if treenode != {}
|
||||||
call treenode.openExplorer()
|
call treenode.openExplorer()
|
||||||
else
|
else
|
||||||
@@ -3539,7 +3539,7 @@ endfunction
|
|||||||
" FUNCTION: s:refreshCurrent() {{{2
|
" FUNCTION: s:refreshCurrent() {{{2
|
||||||
" refreshes the root for the current node
|
" refreshes the root for the current node
|
||||||
function! s:refreshCurrent()
|
function! s:refreshCurrent()
|
||||||
let treenode = s:getSelectedDir()
|
let treenode = s:TreeDirNode.GetSelected()
|
||||||
if treenode == {}
|
if treenode == {}
|
||||||
call s:echo("Refresh failed. Select a node first")
|
call s:echo("Refresh failed. Select a node first")
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user