aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/functional/clipboard/clipboard_provider_spec.lua31
1 files changed, 31 insertions, 0 deletions
diff --git a/test/functional/clipboard/clipboard_provider_spec.lua b/test/functional/clipboard/clipboard_provider_spec.lua
index 0550d22fa6..98b8d2dd45 100644
--- a/test/functional/clipboard/clipboard_provider_spec.lua
+++ b/test/functional/clipboard/clipboard_provider_spec.lua
@@ -285,6 +285,22 @@ describe('clipboard usage', function()
the text]])
end)
+ it('is updated on global changes', function()
+ insert([[
+ text
+ match
+ match
+ text
+ ]])
+ execute('g/match/d')
+ eq('match\n', eval('getreg("*")'))
+ feed('u')
+ eval('setreg("*", "---")')
+ execute('g/test/')
+ feed('<esc>')
+ eq('---', eval('getreg("*")'))
+ end)
+
end)
describe('with clipboard=unnamedplus', function()
@@ -329,6 +345,21 @@ describe('clipboard usage', function()
really unnamed
the plus]])
end)
+ it('is updated on global changes', function()
+ insert([[
+ text
+ match
+ match
+ text
+ ]])
+ execute('g/match/d')
+ eq('match\n', eval('getreg("+")'))
+ feed('u')
+ eval('setreg("+", "---")')
+ execute('g/test/')
+ feed('<esc>')
+ eq('---', eval('getreg("+")'))
+ end)
end)
it('supports :put', function()