summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_global.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-03-29 19:20:41 +0200
committerBram Moolenaar <Bram@vim.org>2017-03-29 19:20:41 +0200
commit3fcfa35f82b9d1ef5e95051b3a45578e10c14ec3 (patch)
tree84aa6be11d89fb6fa012413667901ad75e32c8b1 /src/testdir/test_global.vim
parent99a6e8dd824399332563caa6cacfcda33da1f366 (diff)
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.vim11
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 0000000000..be8aa69623
--- /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