aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-12-24 00:54:19 -0500
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-12-24 09:18:33 -0500
commitf35118ade40d928632fef997561a8492f35982b4 (patch)
treea5e0d05c7b04fec6fb28945d47202e57192245b9 /src
parent172f619b9a834dd431f67ec46a7b4f90b4c2af52 (diff)
downloadrneovim-f35118ade40d928632fef997561a8492f35982b4.tar.gz
rneovim-f35118ade40d928632fef997561a8492f35982b4.tar.bz2
rneovim-f35118ade40d928632fef997561a8492f35982b4.zip
vim-patch:8.2.0907: when using :global clipboard isn't set correctly
Problem: When using :global clipboard isn't set correctly. Solution: Set "clip_unnamed_saved" instead of "clip_unnamed". (Christian Brabandt, closes vim/vim#6203, closes vim/vim#6198) https://github.com/vim/vim/commit/07188fc5ef2366a3b1952e8686a4031b44152d59
Diffstat (limited to 'src')
-rw-r--r--src/nvim/testdir/test_global.vim11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_global.vim b/src/nvim/testdir/test_global.vim
index bdeaf8e2cf..7ccf2812ff 100644
--- a/src/nvim/testdir/test_global.vim
+++ b/src/nvim/testdir/test_global.vim
@@ -1,3 +1,4 @@
+source check.vim
func Test_yank_put_clipboard()
new
@@ -10,6 +11,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'])