aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Hinz <mh.codebro+github@gmail.com>2019-01-10 09:11:36 +0100
committerJustin M. Keyes <justinkz@gmail.com>2019-01-10 09:11:36 +0100
commit3f10c5b5338fc7efec53a23427e1c0e2dea56be4 (patch)
treed4418ae01b91e5b4d83940edefa2683356580aa8
parent6d8b5989bc84c0b54cb6804af0851cb3322234b2 (diff)
downloadrneovim-3f10c5b5338fc7efec53a23427e1c0e2dea56be4.tar.gz
rneovim-3f10c5b5338fc7efec53a23427e1c0e2dea56be4.tar.bz2
rneovim-3f10c5b5338fc7efec53a23427e1c0e2dea56be4.zip
clipboard/macOS: assume that pbcopy works #9480
Avoids ~30-60 ms startup cost for users of clipboard=unnamed.
-rw-r--r--runtime/autoload/provider/clipboard.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/autoload/provider/clipboard.vim b/runtime/autoload/provider/clipboard.vim
index fd32e03666..2fb9d74d8d 100644
--- a/runtime/autoload/provider/clipboard.vim
+++ b/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['+']