Permalink
Browse files

clipboard/macOS: assume that pbcopy works #9480

Avoids ~30-60 ms startup cost for users of clipboard=unnamed.
  • Loading branch information...
mhinz authored and justinmk committed Jan 10, 2019
1 parent 6d8b598 commit 3f10c5b5338fc7efec53a23427e1c0e2dea56be4
Showing with 1 addition and 1 deletion.
  1. +1 −1 runtime/autoload/provider/clipboard.vim
@@ -65,7 +65,7 @@ function! provider#clipboard#Executable() abort
let s:paste = get(g:clipboard, 'paste', { '+': v:null, '*': v:null })
let s:cache_enabled = get(g:clipboard, 'cache_enabled', 0)
return get(g:clipboard, 'name', 'g:clipboard')
elseif has('mac') && executable('pbpaste') && s:cmd_ok('pbpaste')
elseif has('mac')
let s:copy['+'] = 'pbcopy'
let s:paste['+'] = 'pbpaste'
let s:copy['*'] = s:copy['+']

0 comments on commit 3f10c5b

Please sign in to comment.