remove the arg from Path#str()

now everything uses the equivalent of Path#str(0)
This commit is contained in:
marty
2009-08-23 23:56:33 +12:00
parent 7051977808
commit dd38ab8f43
3 changed files with 19 additions and 26 deletions

View File

@@ -93,7 +93,7 @@ function! NERDTreeMoveNode()
endif
try
let bufnum = bufnr(curNode.path.str(0))
let bufnum = bufnr(curNode.path.str())
call curNode.rename(newNodePath)
call NERDTreeRender()
@@ -141,7 +141,7 @@ function! NERDTreeDeleteNode()
"if the node is open in a buffer, ask the user if they want to
"close that buffer
let bufnum = bufnr(currentNode.path.str(0))
let bufnum = bufnr(currentNode.path.str())
if buflisted(bufnum)
let prompt = "\nNode deleted.\n\nThe file is open in buffer ". bufnum . (bufwinnr(bufnum) ==# -1 ? " (hidden)" : "") .". Delete this buffer? (yN)"
call s:promptToDelBuffer(bufnum, prompt)
@@ -163,7 +163,7 @@ function! NERDTreeCopyNode()
let newNodePath = input("Copy the current node\n" .
\ "==========================================================\n" .
\ "Enter the new path to copy the node to: \n" .
\ "", currentNode.path.str(0))
\ "", currentNode.path.str())
if newNodePath != ""
"strip trailing slash