Before copying, turn off &shellslash. Restore after copy is finished. (#952)
This commit is contained in:
parent
c05615fd80
commit
cce52fb9c5
@ -287,6 +287,8 @@ endfunction
|
|||||||
|
|
||||||
" FUNCTION: NERDTreeCopyNode() {{{1
|
" FUNCTION: NERDTreeCopyNode() {{{1
|
||||||
function! NERDTreeCopyNode()
|
function! NERDTreeCopyNode()
|
||||||
|
let l:shellslash = &shellslash
|
||||||
|
let &shellslash = 0
|
||||||
let currentNode = g:NERDTreeFileNode.GetSelected()
|
let currentNode = g:NERDTreeFileNode.GetSelected()
|
||||||
let newNodePath = input("Copy the current node\n" .
|
let newNodePath = input("Copy the current node\n" .
|
||||||
\ "==========================================================\n" .
|
\ "==========================================================\n" .
|
||||||
@ -324,6 +326,7 @@ function! NERDTreeCopyNode()
|
|||||||
else
|
else
|
||||||
call nerdtree#echo("Copy aborted.")
|
call nerdtree#echo("Copy aborted.")
|
||||||
endif
|
endif
|
||||||
|
let &shellslash = l:shellslash
|
||||||
redraw
|
redraw
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user