mirror of
https://github.com/preservim/nerdtree.git
synced 2024-11-22 11:17:20 +08:00
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()
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user