aboutsummaryrefslogtreecommitdiff
path: root/test/functional/autocmd/textyankpost_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/autocmd/textyankpost_spec.lua')
-rw-r--r--test/functional/autocmd/textyankpost_spec.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/autocmd/textyankpost_spec.lua b/test/functional/autocmd/textyankpost_spec.lua
index 5849679dd2..8c23b72cff 100644
--- a/test/functional/autocmd/textyankpost_spec.lua
+++ b/test/functional/autocmd/textyankpost_spec.lua
@@ -229,4 +229,9 @@ describe('TextYankPost', function()
eq(4, eval('g:count'))
end)
+ it('updates numbered registers correctly #10225', function()
+ command('autocmd TextYankPost * let g:reg = getreg("1")')
+ feed('"adj')
+ eq('foo\nbar\nbaz text\n', eval('g:reg'))
+ end)
end)