clipboard: only check for pbcopy on macOS (#5927)

Fixes #5926.
This commit is contained in:
Marco Hinz 2017-01-11 00:50:07 +01:00 committed by Justin M. Keyes
parent 8a5962023f
commit 15c85d8462

View File

@ -47,7 +47,7 @@ function! provider#clipboard#Error() abort
endfunction
function! provider#clipboard#Executable() abort
if executable('pbcopy')
if has('mac') && executable('pbcopy')
let s:copy['+'] = 'pbcopy'
let s:paste['+'] = 'pbpaste'
let s:copy['*'] = s:copy['+']