2014-10-22 15:42:59 -07:00
|
|
|
-- Tests for repeating insert and replace.
|
|
|
|
|
2024-04-20 08:44:13 -07:00
|
|
|
local n = require('test.functional.testnvim')()
|
|
|
|
|
|
|
|
local clear, feed, insert = n.clear, n.feed, n.insert
|
|
|
|
local feed_command, expect = n.feed_command, n.expect
|
2014-10-22 15:42:59 -07:00
|
|
|
|
|
|
|
describe('insertcount', function()
|
|
|
|
setup(clear)
|
|
|
|
|
|
|
|
it('is working', function()
|
|
|
|
insert([[
|
|
|
|
First line
|
|
|
|
Second line
|
|
|
|
Last line]])
|
|
|
|
|
2017-04-08 14:12:26 -07:00
|
|
|
feed_command('/Second')
|
2014-10-22 15:42:59 -07:00
|
|
|
feed('4gro')
|
|
|
|
|
|
|
|
expect([[
|
|
|
|
First line
|
|
|
|
oooond line
|
|
|
|
Last line]])
|
|
|
|
end)
|
|
|
|
end)
|