mirror of
https://github.com/neovim/neovim.git
synced 2026-08-29 18:41:48 +00:00
test: normalise nvim bridge functions
- remove helpers.cur*meths - remove helpers.nvim
This commit is contained in:
@@ -1118,9 +1118,9 @@ describe('regressions', function()
|
||||
screen = Screen.new(100, 20)
|
||||
screen:attach()
|
||||
-- line must be greater than MATCH_CHAR_MAX_LEN
|
||||
helpers.curbufmeths.set_lines(0, -1, false, { string.rep('a', 1000) .. 'hello' })
|
||||
helpers.meths.nvim_buf_set_lines(0, 0, -1, false, { string.rep('a', 1000) .. 'hello' })
|
||||
helpers.exec 'vnew'
|
||||
helpers.curbufmeths.set_lines(0, -1, false, { string.rep('a', 1010) .. 'world' })
|
||||
helpers.meths.nvim_buf_set_lines(0, 0, -1, false, { string.rep('a', 1010) .. 'world' })
|
||||
helpers.exec 'windo diffthis'
|
||||
end)
|
||||
|
||||
@@ -1133,9 +1133,9 @@ describe('regressions', function()
|
||||
for i = 0, 29 do
|
||||
lines[#lines + 1] = tostring(i)
|
||||
end
|
||||
helpers.curbufmeths.set_lines(0, -1, false, lines)
|
||||
helpers.meths.nvim_buf_set_lines(0, 0, -1, false, lines)
|
||||
helpers.exec 'vnew'
|
||||
helpers.curbufmeths.set_lines(0, -1, false, { '00', '29' })
|
||||
helpers.meths.nvim_buf_set_lines(0, 0, -1, false, { '00', '29' })
|
||||
helpers.exec 'windo diffthis'
|
||||
feed('<C-e>')
|
||||
screen:expect {
|
||||
|
||||
Reference in New Issue
Block a user