forked from aniani/vim
Problem: MS-Windows: when 'clipboard' is "unnamed" yyp does not work in a
:global command.
Solution: When setting the clipboard was postponed, do not clear the
register.
12 lines
216 B
VimL
12 lines
216 B
VimL
|
|
func Test_yank_put_clipboard()
|
|
new
|
|
call setline(1, ['a', 'b', 'c'])
|
|
set clipboard=unnamed
|
|
g/^/normal yyp
|
|
call assert_equal(['a', 'a', 'b', 'b', 'c', 'c'], getline(1, 6))
|
|
|
|
set clipboard&
|
|
bwipe!
|
|
endfunc
|