From 842f5cabaab4738ac53247ee474b210c69c4695d Mon Sep 17 00:00:00 2001 From: Phil Runninger Date: Sun, 17 Feb 2019 22:03:49 -0500 Subject: [PATCH] Before deleting, turn off &shellslash. Restore after delete is done. --- nerdtree_plugin/fs_menu.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nerdtree_plugin/fs_menu.vim b/nerdtree_plugin/fs_menu.vim index a638bd7..e0911e4 100644 --- a/nerdtree_plugin/fs_menu.vim +++ b/nerdtree_plugin/fs_menu.vim @@ -202,6 +202,8 @@ endfunction " FUNCTION: NERDTreeDeleteNode() {{{1 function! NERDTreeDeleteNode() + let l:shellslash = &shellslash + let &shellslash = 0 let currentNode = g:NERDTreeFileNode.GetSelected() let confirmed = 0 @@ -242,7 +244,7 @@ function! NERDTreeDeleteNode() else call nerdtree#echo("delete aborted") endif - + let &shellslash = l:shellslash endfunction " FUNCTION: NERDTreeListNode() {{{1