mirror of
https://github.com/neovim/neovim.git
synced 2025-11-18 00:01:46 +00:00
clipboard: don't use &shell in clipboard provider
This commit is contained in:
committed by
Justin M. Keyes
parent
01a200996a
commit
a0e89978bd
@@ -5,7 +5,8 @@ let s:copy = {}
|
|||||||
let s:paste = {}
|
let s:paste = {}
|
||||||
|
|
||||||
function! s:try_cmd(cmd, ...)
|
function! s:try_cmd(cmd, ...)
|
||||||
let out = a:0 ? systemlist(a:cmd, a:1, 1) : systemlist(a:cmd, [''], 1)
|
let argv = split(a:cmd, " ")
|
||||||
|
let out = a:0 ? systemlist(argv, a:1, 1) : systemlist(argv, [''], 1)
|
||||||
if v:shell_error
|
if v:shell_error
|
||||||
echo "clipboard: error: ".(len(out) ? out[0] : '')
|
echo "clipboard: error: ".(len(out) ? out[0] : '')
|
||||||
return ''
|
return ''
|
||||||
|
|||||||
Reference in New Issue
Block a user