diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2024-01-03 02:09:18 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2024-01-03 02:09:29 +0100 |
commit | 04f2f864e270e772c6326cefdf24947f0130e492 (patch) | |
tree | 46f83f909b888a66c741032ab955afc6eab84292 /test/functional/legacy/ex_mode_spec.lua | |
parent | 59d117ec99b6037cb9fad5bbfb6d0b18f5012927 (diff) | |
download | rneovim-04f2f864e270e772c6326cefdf24947f0130e492.tar.gz rneovim-04f2f864e270e772c6326cefdf24947f0130e492.tar.bz2 rneovim-04f2f864e270e772c6326cefdf24947f0130e492.zip |
refactor: format test/*
Diffstat (limited to 'test/functional/legacy/ex_mode_spec.lua')
-rw-r--r-- | test/functional/legacy/ex_mode_spec.lua | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/functional/legacy/ex_mode_spec.lua b/test/functional/legacy/ex_mode_spec.lua index 8f8d958530..90abf9ebd7 100644 --- a/test/functional/legacy/ex_mode_spec.lua +++ b/test/functional/legacy/ex_mode_spec.lua @@ -14,7 +14,7 @@ describe('Ex mode', function() it('supports command line editing', function() local function test_ex_edit(expected, cmd) feed('gQ' .. cmd .. '<C-b>"<CR>') - local ret = eval('@:[1:]') -- Remove leading quote. + local ret = eval('@:[1:]') -- Remove leading quote. feed('visual<CR>') eq(meths.replace_termcodes(expected, true, true, true), ret) end @@ -46,9 +46,9 @@ describe('Ex mode', function() command('set noincsearch nohlsearch inccommand=') local screen = Screen.new(60, 6) screen:set_default_attr_ids({ - [0] = {bold = true, reverse = true}, -- MsgSeparator - [1] = {foreground = Screen.colors.Brown}, -- LineNr - [2] = {bold = true, foreground = Screen.colors.Blue}, -- NonText + [0] = { bold = true, reverse = true }, -- MsgSeparator + [1] = { foreground = Screen.colors.Brown }, -- LineNr + [2] = { bold = true, foreground = Screen.colors.Blue }, -- NonText }) screen:attach() command([[call setline(1, ['foo foo', 'foo foo', 'foo foo'])]]) @@ -126,8 +126,8 @@ describe('Ex mode', function() it('pressing Ctrl-C in :append inside a loop in Ex mode does not hang', function() local screen = Screen.new(60, 6) screen:set_default_attr_ids({ - [0] = {bold = true, reverse = true}, -- MsgSeparator - [1] = {bold = true, foreground = Screen.colors.Blue}, -- NonText + [0] = { bold = true, reverse = true }, -- MsgSeparator + [1] = { bold = true, foreground = Screen.colors.Blue }, -- NonText }) screen:attach() feed('gQ') @@ -142,7 +142,7 @@ describe('Ex mode', function() ^ | ]]) feed('<C-C>') - poke_eventloop() -- Wait for input to be flushed + poke_eventloop() -- Wait for input to be flushed feed('foo<CR>') screen:expect([[ Entering Ex mode. Type "visual" to go to Normal mode. | |