diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-08-21 00:46:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-21 00:46:45 +0200 |
commit | 8d1ccb606d3806dcf9c4bcfdb0446d8139c0e765 (patch) | |
tree | 63cda34cb93df36f64be4beea934ee34d850104c /runtime/autoload/health | |
parent | b3da396804ec0a63f11b86a363bd4c98e23f8ebd (diff) | |
parent | 88165a798e7459fecf815a13c853949923d4b278 (diff) | |
download | rneovim-8d1ccb606d3806dcf9c4bcfdb0446d8139c0e765.tar.gz rneovim-8d1ccb606d3806dcf9c4bcfdb0446d8139c0e765.tar.bz2 rneovim-8d1ccb606d3806dcf9c4bcfdb0446d8139c0e765.zip |
Merge #7193 from justinmk/cb-pathology
Diffstat (limited to 'runtime/autoload/health')
-rw-r--r-- | runtime/autoload/health/provider.vim | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/runtime/autoload/health/provider.vim b/runtime/autoload/health/provider.vim index ec20615f69..26db5b77b7 100644 --- a/runtime/autoload/health/provider.vim +++ b/runtime/autoload/health/provider.vim @@ -121,14 +121,14 @@ function! s:check_clipboard() abort call health#report_start('Clipboard (optional)') let clipboard_tool = provider#clipboard#Executable() - if empty(clipboard_tool) + if exists('g:clipboard') && empty(clipboard_tool) + call health#report_error( + \ provider#clipboard#Error(), + \ ["Use the example in :help g:clipboard as a template, or don't set g:clipboard at all."]) + elseif empty(clipboard_tool) call health#report_warn( - \ 'No clipboard tool found. Clipboard registers will not work.', + \ 'No clipboard tool found. Clipboard registers (`"+` and `"*`) will not work.', \ [':help clipboard']) - elseif exists('g:clipboard') && (type({}) != type(g:clipboard) - \ || !has_key(g:clipboard, 'copy') || !has_key(g:clipboard, 'paste')) - call health#report_error( - \ 'g:clipboard exists but is malformed. It must be a dictionary with the keys documented at :help g:clipboard') else call health#report_ok('Clipboard tool found: '. clipboard_tool) endif |