commit fcb54eee12b00997f16022b26e0f848c64785bf1
parent a686be5c3198953851f2cce3513fdd7989b6f1b3
Author: marty <martin_grenfell@msn.com>
Date: Thu, 20 Aug 2009 03:07:54 +1200
remove some unneeded checks from fs_menu
Diffstat:
1 file changed, 0 insertions(+), 15 deletions(-)
diff --git a/nerdtree_plugin/fs_menu.vim b/nerdtree_plugin/fs_menu.vim
@@ -82,11 +82,6 @@ endfunction
"FUNCTION: NERDTreeMoveNode(){{{1
function! NERDTreeMoveNode()
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" .
\ "==========================================================\n" .
\ "Enter the new path for the node: \n" .
@@ -121,11 +116,6 @@ endfunction
" FUNCTION: NERDTreeDeleteNode() {{{1
function! NERDTreeDeleteNode()
let currentNode = g:NERDTreeFileNode.GetSelected()
- if currentNode ==# {}
- call s:echo("Put the cursor on a node first")
- return
- endif
-
let confirmed = 0
if currentNode.path.isDirectory
@@ -170,11 +160,6 @@ endfunction
" FUNCTION: NERDTreeCopyNode() {{{1
function! NERDTreeCopyNode()
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" .
\ "==========================================================\n" .
\ "Enter the new path to copy the node to: \n" .