diff options
author | Lewis Russell <lewis6991@gmail.com> | 2024-01-12 13:11:28 +0000 |
---|---|---|
committer | Lewis Russell <lewis6991@gmail.com> | 2024-01-12 17:53:27 +0000 |
commit | 4f81f506f96f8b5bfcf00e952ceb492d3ce9dc6e (patch) | |
tree | 0cbb2cf8dac8b4f43109dc6f7a4051dfbea23f12 /test/functional/editor/mark_spec.lua | |
parent | c30f2e3182e3b50e7c03932027ac55edfc8ada4a (diff) | |
download | rneovim-4f81f506f96f8b5bfcf00e952ceb492d3ce9dc6e.tar.gz rneovim-4f81f506f96f8b5bfcf00e952ceb492d3ce9dc6e.tar.bz2 rneovim-4f81f506f96f8b5bfcf00e952ceb492d3ce9dc6e.zip |
test: normalise nvim bridge functions
- remove helpers.cur*meths
- remove helpers.nvim
Diffstat (limited to 'test/functional/editor/mark_spec.lua')
-rw-r--r-- | test/functional/editor/mark_spec.lua | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/test/functional/editor/mark_spec.lua b/test/functional/editor/mark_spec.lua index 266b5194ee..67234b9b90 100644 --- a/test/functional/editor/mark_spec.lua +++ b/test/functional/editor/mark_spec.lua @@ -1,7 +1,6 @@ local helpers = require('test.functional.helpers')(after_each) local Screen = require('test.functional.ui.screen') local meths = helpers.meths -local curbufmeths = helpers.curbufmeths local clear = helpers.clear local command = helpers.command local funcs = helpers.funcs @@ -29,13 +28,13 @@ describe('named marks', function() it('can be set', function() command('edit ' .. file1) command('mark a') - eq({ 1, 0 }, curbufmeths.get_mark('a')) + eq({ 1, 0 }, meths.nvim_buf_get_mark(0, 'a')) feed('jmb') - eq({ 2, 0 }, curbufmeths.get_mark('b')) + eq({ 2, 0 }, meths.nvim_buf_get_mark(0, 'b')) feed('jmB') - eq({ 3, 0 }, curbufmeths.get_mark('B')) + eq({ 3, 0 }, meths.nvim_buf_get_mark(0, 'B')) command('4kc') - eq({ 4, 0 }, curbufmeths.get_mark('c')) + eq({ 4, 0 }, meths.nvim_buf_get_mark(0, 'c')) end) it('errors when set out of range with :mark', function() |