forked from aniani/vim
patch 8.0.0522: Win32: when 'clipboard' is "unnamed" yyp does not work
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.
This commit is contained in:
@@ -21,8 +21,9 @@ source test_findfile.vim
|
||||
source test_float_func.vim
|
||||
source test_fnamemodify.vim
|
||||
source test_functions.vim
|
||||
source test_glob2regpat.vim
|
||||
source test_ga.vim
|
||||
source test_glob2regpat.vim
|
||||
source test_global.vim
|
||||
source test_goto.vim
|
||||
source test_help_tagjump.vim
|
||||
source test_join.vim
|
||||
|
||||
11
src/testdir/test_global.vim
Normal file
11
src/testdir/test_global.vim
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user