1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-02 22:50:06 +08:00

fix defx configuration

This commit is contained in:
Shidong Wang 2021-01-02 19:46:39 +08:00
parent f67a5928bd
commit c99ad921c8

View File

@ -253,7 +253,7 @@ function! s:DefxCopyFile(_) abort
endfunction
function! s:DefxPasteFile(_) abort
if !executable('xclip-copyfile') && !s:SYS.isWindows
if !executable('xclip-pastefile') && !s:SYS.isWindows
echohl WarningMsg
echo 'you need to have xclip-copyfile in your PATH'
echohl NONE
@ -279,6 +279,7 @@ function! s:DefxPasteFile(_) abort
let destination = path . s:FILE.separator . fnamemodify(s:copyed_file_path, ':t')
let cmd = 'cmd /c copy ' . shellescape(s:copyed_file_path) . ' ' . shellescape(destination)
call s:VCOP.systemlist(cmd)
endif
if v:shell_error
echohl WarningMsg
echo 'failed to paste file!'
@ -286,7 +287,6 @@ function! s:DefxPasteFile(_) abort
else
echo 'Pasted:' . destination
endif
endif
endfunction
function! s:trim_right(str, trim)