summaryrefslogtreecommitdiff
path: root/src/testdir/test_global.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-06-05 20:03:16 +0200
committerBram Moolenaar <Bram@vim.org>2020-06-05 20:03:16 +0200
commit07188fc5ef2366a3b1952e8686a4031b44152d59 (patch)
treec6d6b8c9de203a2e5971fb5ac8e30220a6f3a600 /src/testdir/test_global.vim
parentea563cc22be043ff91dcbdf2878c3d1fd944e573 (diff)
downloadvim-git-07188fc5ef2366a3b1952e8686a4031b44152d59.tar.gz
patch 8.2.0907: when using :global clipboard isn't set correctlyv8.2.0907
Problem: When using :global clipboard isn't set correctly. Solution: Set "clip_unnamed_saved" instead of "clip_unnamed". (Christian Brabandt, closes #6203, closes #6198)
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
index d3bfaa90d..38dc082da 100644
--- a/src/testdir/test_global.vim
+++ b/src/testdir/test_global.vim
@@ -1,3 +1,4 @@
+source check.vim
func Test_yank_put_clipboard()
new
@@ -13,6 +14,16 @@ func Test_yank_put_clipboard()
bwipe!
endfunc
+func Test_global_set_clipboard()
+ CheckFeature clipboard_working
+ new
+ set clipboard=unnamedplus
+ let @+='clipboard' | g/^/set cb= | let @" = 'unnamed' | put
+ call assert_equal(['','unnamed'], getline(1, '$'))
+ set clipboard&
+ bwipe!
+endfunc
+
func Test_nested_global()
new
call setline(1, ['nothing', 'found', 'found bad', 'bad'])