diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-03-29 19:20:41 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-03-29 19:20:41 +0200 |
commit | 3fcfa35f82b9d1ef5e95051b3a45578e10c14ec3 (patch) | |
tree | 84aa6be11d89fb6fa012413667901ad75e32c8b1 /src/testdir/test_global.vim | |
parent | 99a6e8dd824399332563caa6cacfcda33da1f366 (diff) | |
download | vim-git-3fcfa35f82b9d1ef5e95051b3a45578e10c14ec3.tar.gz |
patch 8.0.0522: Win32: when 'clipboard' is "unnamed" yyp does not workv8.0.0522
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.
Diffstat (limited to 'src/testdir/test_global.vim')
-rw-r--r-- | src/testdir/test_global.vim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/testdir/test_global.vim b/src/testdir/test_global.vim new file mode 100644 index 000000000..be8aa6962 --- /dev/null +++ b/src/testdir/test_global.vim @@ -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 |