diff options
Diffstat (limited to 'test/functional/plugin/matchparen_spec.lua')
-rw-r--r-- | test/functional/plugin/matchparen_spec.lua | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/test/functional/plugin/matchparen_spec.lua b/test/functional/plugin/matchparen_spec.lua index 2670734c1a..530afd16e4 100644 --- a/test/functional/plugin/matchparen_spec.lua +++ b/test/functional/plugin/matchparen_spec.lua @@ -3,7 +3,7 @@ local Screen = require('test.functional.ui.screen') local clear = helpers.clear local command = helpers.command -local meths = helpers.meths +local api = helpers.api local feed = helpers.feed local eq = helpers.eq @@ -11,18 +11,18 @@ describe('matchparen', function() local screen before_each(function() - clear{args={'-u', 'NORC'}} - screen = Screen.new(20,5) + clear { args = { '-u', 'NORC' } } + screen = Screen.new(20, 5) screen:attach() - screen:set_default_attr_ids( { - [0] = {bold=true, foreground=255}, - [1] = {bold=true}, - } ) + screen:set_default_attr_ids({ + [0] = { bold = true, foreground = 255 }, + [1] = { bold = true }, + }) end) it('uses correct column after i_<Up>. Vim patch 7.4.1296', function() command('set noautoindent nosmartindent nocindent laststatus=0') - eq(1, meths.get_var('loaded_matchparen')) + eq(1, api.nvim_get_var('loaded_matchparen')) feed('ivoid f_test()<cr>') feed('{<cr>') feed('}') @@ -39,6 +39,5 @@ describe('matchparen', function() } | {1:-- INSERT --} | ]]) - end) end) |