aboutsummaryrefslogtreecommitdiff
path: root/test/functional/clipboard/autoload/provider/clipboard.vim
blob: 6c05a19fc3ebcd5c79f95c031fe22742550596c0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
let g:test_clip = { '+': [''], '*': [''], }

let s:methods = {}

function! s:methods.get(reg)
  return g:test_clip[a:reg]
endfunction

function! s:methods.set(lines, regtype, reg)
  let g:test_clip[a:reg] = a:lines
endfunction


function! provider#clipboard#Call(method, args)
  return call(s:methods[a:method],a:args,s:methods)
endfunction