mirror of
https://github.com/neovim/neovim.git
synced 2025-10-15 14:26:07 +00:00
test/clipboard: more clipboard test cleanups
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user