remove some unneeded checks from fs_menu

This commit is contained in:
marty 2009-08-20 03:07:54 +12:00
parent a686be5c31
commit fcb54eee12

View File

@ -82,11 +82,6 @@ endfunction
"FUNCTION: NERDTreeMoveNode(){{{1 "FUNCTION: NERDTreeMoveNode(){{{1
function! NERDTreeMoveNode() function! NERDTreeMoveNode()
let curNode = g:NERDTreeFileNode.GetSelected() let curNode = g:NERDTreeFileNode.GetSelected()
if curNode ==# {}
call s:echo("Put the cursor on a node first" )
return
endif
let newNodePath = input("Rename the current node\n" . let newNodePath = input("Rename the current node\n" .
\ "==========================================================\n" . \ "==========================================================\n" .
\ "Enter the new path for the node: \n" . \ "Enter the new path for the node: \n" .
@ -121,11 +116,6 @@ endfunction
" FUNCTION: NERDTreeDeleteNode() {{{1 " FUNCTION: NERDTreeDeleteNode() {{{1
function! NERDTreeDeleteNode() function! NERDTreeDeleteNode()
let currentNode = g:NERDTreeFileNode.GetSelected() let currentNode = g:NERDTreeFileNode.GetSelected()
if currentNode ==# {}
call s:echo("Put the cursor on a node first")
return
endif
let confirmed = 0 let confirmed = 0
if currentNode.path.isDirectory if currentNode.path.isDirectory
@ -170,11 +160,6 @@ endfunction
" FUNCTION: NERDTreeCopyNode() {{{1 " FUNCTION: NERDTreeCopyNode() {{{1
function! NERDTreeCopyNode() function! NERDTreeCopyNode()
let currentNode = g:NERDTreeFileNode.GetSelected() let currentNode = g:NERDTreeFileNode.GetSelected()
if currentNode ==# {}
call s:echo("Put the cursor on a file node first")
return
endif
let newNodePath = input("Copy the current node\n" . let newNodePath = input("Copy the current node\n" .
\ "==========================================================\n" . \ "==========================================================\n" .
\ "Enter the new path to copy the node to: \n" . \ "Enter the new path to copy the node to: \n" .