Merge pull request #867 from aflock/aflock/reword-renamed-buffer

Reword renamed-buffer prompt to be more clear
This commit is contained in:
Phil Runninger 2018-08-04 15:13:46 -04:00 committed by GitHub
commit e653a68270
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -164,7 +164,7 @@ function! NERDTreeMoveNode()
"if the node is open in a buffer, ask the user if they want to "if the node is open in a buffer, ask the user if they want to
"close that buffer "close that buffer
if bufnum != -1 if bufnum != -1
let prompt = "\nNode renamed.\n\nThe old file is open in buffer ". bufnum . (bufwinnr(bufnum) ==# -1 ? " (hidden)" : "") .". Replace this buffer with a new file? (yN)" let prompt = "\nNode renamed.\n\nThe old file is open in buffer ". bufnum . (bufwinnr(bufnum) ==# -1 ? " (hidden)" : "") .". Replace this buffer with the new file? (yN)"
call s:promptToRenameBuffer(bufnum, prompt, newNodePath) call s:promptToRenameBuffer(bufnum, prompt, newNodePath)
endif endif