mirror of
https://github.com/neovim/neovim.git
synced 2024-12-28 14:31:13 -07:00
20 lines
473 B
Lua
20 lines
473 B
Lua
local helpers = require('test.functional.helpers')(after_each)
|
|
local clear, feed = helpers.clear, helpers.feed
|
|
local expect, command = helpers.expect, helpers.command
|
|
|
|
describe('insert-mode Ctrl-R', function()
|
|
before_each(clear)
|
|
|
|
it('works', function()
|
|
command("let @@ = 'test'")
|
|
feed('i<C-r>"')
|
|
expect('test')
|
|
end)
|
|
|
|
it('works with multi-byte text', function()
|
|
command("let @@ = 'påskägg'")
|
|
feed('i<C-r>"')
|
|
expect('påskägg')
|
|
end)
|
|
end)
|