Before copying, turn off &shellslash. Restore after copy is finished. (#952)

This commit is contained in:
Phil Runninger 2019-02-17 18:30:10 -05:00 committed by GitHub
parent c05615fd80
commit cce52fb9c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -287,6 +287,8 @@ endfunction
" FUNCTION: NERDTreeCopyNode() {{{1
function! NERDTreeCopyNode()
let l:shellslash = &shellslash
let &shellslash = 0
let currentNode = g:NERDTreeFileNode.GetSelected()
let newNodePath = input("Copy the current node\n" .
\ "==========================================================\n" .
@ -324,6 +326,7 @@ function! NERDTreeCopyNode()
else
call nerdtree#echo("Copy aborted.")
endif
let &shellslash = l:shellslash
redraw
endfunction