mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
ops: fix i<c-r> with multi-byte text (#6524)
This commit is contained in:
committed by
Justin M. Keyes
parent
58d2ce9bdb
commit
12fc1defd6
19
test/functional/insert/ctrl_r_spec.lua
Normal file
19
test/functional/insert/ctrl_r_spec.lua
Normal file
@@ -0,0 +1,19 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user