diff options
-rw-r--r-- | runtime/autoload/provider/clipboard.vim | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/runtime/autoload/provider/clipboard.vim b/runtime/autoload/provider/clipboard.vim index 8bbb72f933..fd32e03666 100644 --- a/runtime/autoload/provider/clipboard.vim +++ b/runtime/autoload/provider/clipboard.vim @@ -55,22 +55,12 @@ endfunction function! provider#clipboard#Executable() abort if exists('g:clipboard') if type({}) isnot# type(g:clipboard) + \ || type({}) isnot# type(get(g:clipboard, 'copy', v:null)) + \ || type({}) isnot# type(get(g:clipboard, 'paste', v:null)) let s:err = 'clipboard: invalid g:clipboard' return '' endif - if type(get(g:clipboard, 'copy', v:null)) isnot# v:t_dict - \ && type(get(g:clipboard, 'copy', v:null)) isnot# v:t_func - let s:err = "clipboard: invalid g:clipboard['copy']" - return '' - endif - - if type(get(g:clipboard, 'paste', v:null)) isnot# v:t_dict - \ && type(get(g:clipboard, 'paste', v:null)) isnot# v:t_func - let s:err = "clipboard: invalid g:clipboard['paste']" - return '' - endif - let s:copy = get(g:clipboard, 'copy', { '+': v:null, '*': v:null }) let s:paste = get(g:clipboard, 'paste', { '+': v:null, '*': v:null }) let s:cache_enabled = get(g:clipboard, 'cache_enabled', 0) |