commit cce52fb9c5b957f5fadd1bc5c74b8aea32fd4bcb
parent c05615fd80141c3ab04459e75a42d2ed6f030e18
Author: Phil Runninger <PhilRunninger@users.noreply.github.com>
Date: Sun, 17 Feb 2019 18:30:10 -0500
Before copying, turn off &shellslash. Restore after copy is finished. (#952)
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/nerdtree_plugin/fs_menu.vim b/nerdtree_plugin/fs_menu.vim
@@ -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