From cce52fb9c5b957f5fadd1bc5c74b8aea32fd4bcb Mon Sep 17 00:00:00 2001 From: Phil Runninger Date: Sun, 17 Feb 2019 18:30:10 -0500 Subject: [PATCH] Before copying, turn off &shellslash. Restore after copy is finished. (#952) --- nerdtree_plugin/fs_menu.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nerdtree_plugin/fs_menu.vim b/nerdtree_plugin/fs_menu.vim index 5dee680..a638bd7 100644 --- 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