diff options
Diffstat (limited to 'test/functional/autocmd/cursormoved_spec.lua')
-rw-r--r-- | test/functional/autocmd/cursormoved_spec.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/autocmd/cursormoved_spec.lua b/test/functional/autocmd/cursormoved_spec.lua index 3ab5c3b9b1..302afe87b8 100644 --- a/test/functional/autocmd/cursormoved_spec.lua +++ b/test/functional/autocmd/cursormoved_spec.lua @@ -3,7 +3,7 @@ local helpers = require('test.functional.helpers')(after_each) local clear = helpers.clear local eq = helpers.eq local eval = helpers.eval -local meths = helpers.meths +local api = helpers.api local source = helpers.source local command = helpers.command @@ -41,9 +41,9 @@ describe('CursorMoved', function() vsplit foo autocmd CursorMoved * let g:cursormoved += 1 ]]) - meths.buf_set_lines(eval('g:buf'), 0, -1, true, { 'aaa' }) + api.nvim_buf_set_lines(eval('g:buf'), 0, -1, true, { 'aaa' }) eq(0, eval('g:cursormoved')) - eq({ 'aaa' }, meths.buf_get_lines(eval('g:buf'), 0, -1, true)) + eq({ 'aaa' }, api.nvim_buf_get_lines(eval('g:buf'), 0, -1, true)) eq(0, eval('g:cursormoved')) end) |