1
0
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:
Bram Moolenaar
2017-03-29 19:20:41 +02:00
parent 99a6e8dd82
commit 3fcfa35f82
8 changed files with 31 additions and 6 deletions

View File

@@ -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

View 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