diff options
author | Lewis Russell <lewis6991@gmail.com> | 2024-01-12 12:44:54 +0000 |
---|---|---|
committer | Lewis Russell <lewis6991@gmail.com> | 2024-01-12 13:01:06 +0000 |
commit | c30f2e3182e3b50e7c03932027ac55edfc8ada4a (patch) | |
tree | edf0a76dba282d946f67fe70fff8c6cbe28e7a82 /test/functional/editor/mark_spec.lua | |
parent | 284e0ad26dd9de90c3a813dd1b357a425eca6bad (diff) | |
download | rneovim-c30f2e3182e3b50e7c03932027ac55edfc8ada4a.tar.gz rneovim-c30f2e3182e3b50e7c03932027ac55edfc8ada4a.tar.bz2 rneovim-c30f2e3182e3b50e7c03932027ac55edfc8ada4a.zip |
test: typing for helpers.meths
Diffstat (limited to 'test/functional/editor/mark_spec.lua')
-rw-r--r-- | test/functional/editor/mark_spec.lua | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/test/functional/editor/mark_spec.lua b/test/functional/editor/mark_spec.lua index 67d8cc58ad..266b5194ee 100644 --- a/test/functional/editor/mark_spec.lua +++ b/test/functional/editor/mark_spec.lua @@ -10,7 +10,7 @@ local feed = helpers.feed local write_file = helpers.write_file local pcall_err = helpers.pcall_err local cursor = function() - return helpers.meths.win_get_cursor(0) + return helpers.meths.nvim_win_get_cursor(0) end describe('named marks', function() @@ -105,7 +105,7 @@ describe('named marks', function() feed('mA') command('next') feed("'A") - eq(1, meths.get_current_buf().id) + eq(1, meths.nvim_get_current_buf().id) eq({ 2, 0 }, cursor()) end) @@ -118,7 +118,7 @@ describe('named marks', function() feed('mA') command('next') feed('`A') - eq(1, meths.get_current_buf().id) + eq(1, meths.nvim_get_current_buf().id) eq({ 2, 2 }, cursor()) end) @@ -131,7 +131,7 @@ describe('named marks', function() feed('mA') command('next') feed("g'A") - eq(1, meths.get_current_buf().id) + eq(1, meths.nvim_get_current_buf().id) eq({ 2, 0 }, cursor()) end) @@ -144,7 +144,7 @@ describe('named marks', function() feed('mA') command('next') feed('g`A') - eq(1, meths.get_current_buf().id) + eq(1, meths.nvim_get_current_buf().id) eq({ 2, 2 }, cursor()) end) @@ -158,7 +158,7 @@ describe('named marks', function() feed('mA') command('next') command("'A") - eq(1, meths.get_current_buf().id) + eq(1, meths.nvim_get_current_buf().id) eq({ 2, 0 }, cursor()) end) @@ -303,24 +303,24 @@ describe('named marks', function() end) it("getting '{ '} '( ') does not move cursor", function() - meths.buf_set_lines(0, 0, 0, true, { 'aaaaa', 'bbbbb', 'ccccc', 'ddddd', 'eeeee' }) - meths.win_set_cursor(0, { 2, 0 }) + meths.nvim_buf_set_lines(0, 0, 0, true, { 'aaaaa', 'bbbbb', 'ccccc', 'ddddd', 'eeeee' }) + meths.nvim_win_set_cursor(0, { 2, 0 }) funcs.getpos("'{") - eq({ 2, 0 }, meths.win_get_cursor(0)) + eq({ 2, 0 }, meths.nvim_win_get_cursor(0)) funcs.getpos("'}") - eq({ 2, 0 }, meths.win_get_cursor(0)) + eq({ 2, 0 }, meths.nvim_win_get_cursor(0)) funcs.getpos("'(") - eq({ 2, 0 }, meths.win_get_cursor(0)) + eq({ 2, 0 }, meths.nvim_win_get_cursor(0)) funcs.getpos("')") - eq({ 2, 0 }, meths.win_get_cursor(0)) + eq({ 2, 0 }, meths.nvim_win_get_cursor(0)) end) it('in command range does not move cursor #19248', function() - meths.create_user_command('Test', ':', { range = true }) - meths.buf_set_lines(0, 0, 0, true, { 'aaaaa', 'bbbbb', 'ccccc', 'ddddd', 'eeeee' }) - meths.win_set_cursor(0, { 2, 0 }) + meths.nvim_create_user_command('Test', ':', { range = true }) + meths.nvim_buf_set_lines(0, 0, 0, true, { 'aaaaa', 'bbbbb', 'ccccc', 'ddddd', 'eeeee' }) + meths.nvim_win_set_cursor(0, { 2, 0 }) command([['{,'}Test]]) - eq({ 2, 0 }, meths.win_get_cursor(0)) + eq({ 2, 0 }, meths.nvim_win_get_cursor(0)) end) end) |