test/clipboard: more clipboard test cleanups

This commit is contained in:
Björn Linse
2015-03-29 12:20:26 +02:00
parent 7422843f5c
commit db92fcdba3
2 changed files with 64 additions and 28 deletions

View File

@@ -2,8 +2,16 @@ let g:test_clip = { '+': [''], '*': [''], }
let s:methods = {}
let g:cliplossy = 0
function! s:methods.get(reg)
return g:test_clip[a:reg]
if g:cliplossy
" behave like pure text clipboard
return g:test_clip[a:reg][0]
else
"behave like VIMENC clipboard
return g:test_clip[a:reg]
end
endfunction
function! s:methods.set(lines, regtype, reg)