mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-09 08:10:03 +08:00
fix defx configuration
This commit is contained in:
parent
f67a5928bd
commit
c99ad921c8
@ -253,7 +253,7 @@ function! s:DefxCopyFile(_) abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:DefxPasteFile(_) abort
|
function! s:DefxPasteFile(_) abort
|
||||||
if !executable('xclip-copyfile') && !s:SYS.isWindows
|
if !executable('xclip-pastefile') && !s:SYS.isWindows
|
||||||
echohl WarningMsg
|
echohl WarningMsg
|
||||||
echo 'you need to have xclip-copyfile in your PATH'
|
echo 'you need to have xclip-copyfile in your PATH'
|
||||||
echohl NONE
|
echohl NONE
|
||||||
@ -279,13 +279,13 @@ function! s:DefxPasteFile(_) abort
|
|||||||
let destination = path . s:FILE.separator . fnamemodify(s:copyed_file_path, ':t')
|
let destination = path . s:FILE.separator . fnamemodify(s:copyed_file_path, ':t')
|
||||||
let cmd = 'cmd /c copy ' . shellescape(s:copyed_file_path) . ' ' . shellescape(destination)
|
let cmd = 'cmd /c copy ' . shellescape(s:copyed_file_path) . ' ' . shellescape(destination)
|
||||||
call s:VCOP.systemlist(cmd)
|
call s:VCOP.systemlist(cmd)
|
||||||
if v:shell_error
|
endif
|
||||||
echohl WarningMsg
|
if v:shell_error
|
||||||
echo 'failed to paste file!'
|
echohl WarningMsg
|
||||||
echohl NONE
|
echo 'failed to paste file!'
|
||||||
else
|
echohl NONE
|
||||||
echo 'Pasted:' . destination
|
else
|
||||||
endif
|
echo 'Pasted:' . destination
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user