aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/excmd_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2024-01-03 02:09:18 +0100
committerJustin M. Keyes <justinkz@gmail.com>2024-01-03 02:09:29 +0100
commit04f2f864e270e772c6326cefdf24947f0130e492 (patch)
tree46f83f909b888a66c741032ab955afc6eab84292 /test/functional/legacy/excmd_spec.lua
parent59d117ec99b6037cb9fad5bbfb6d0b18f5012927 (diff)
downloadrneovim-04f2f864e270e772c6326cefdf24947f0130e492.tar.gz
rneovim-04f2f864e270e772c6326cefdf24947f0130e492.tar.bz2
rneovim-04f2f864e270e772c6326cefdf24947f0130e492.zip
refactor: format test/*
Diffstat (limited to 'test/functional/legacy/excmd_spec.lua')
-rw-r--r--test/functional/legacy/excmd_spec.lua16
1 files changed, 9 insertions, 7 deletions
diff --git a/test/functional/legacy/excmd_spec.lua b/test/functional/legacy/excmd_spec.lua
index 41a478e793..ba41a983e2 100644
--- a/test/functional/legacy/excmd_spec.lua
+++ b/test/functional/legacy/excmd_spec.lua
@@ -23,7 +23,9 @@ end
describe('Ex command', function()
before_each(clear)
- after_each(function() eq({}, meths.get_vvar('errors')) end)
+ after_each(function()
+ eq({}, meths.get_vvar('errors'))
+ end)
it('checks for address line overflow', function()
if sizeoflong() < 8 then
@@ -47,10 +49,10 @@ describe(':confirm command dialog', function()
clear()
screen = Screen.new(75, 20)
screen:set_default_attr_ids({
- [0] = {bold = true, foreground = Screen.colors.Blue}, -- NonText
- [1] = {bold = true, reverse = true}, -- StatusLine, MsgSeparator
- [2] = {reverse = true}, -- StatusLineNC
- [3] = {bold = true, foreground = Screen.colors.SeaGreen}, -- MoreMsg
+ [0] = { bold = true, foreground = Screen.colors.Blue }, -- NonText
+ [1] = { bold = true, reverse = true }, -- StatusLine, MsgSeparator
+ [2] = { reverse = true }, -- StatusLineNC
+ [3] = { bold = true, foreground = Screen.colors.SeaGreen }, -- MoreMsg
})
screen:attach()
end
@@ -335,7 +337,7 @@ describe(':confirm command dialog', function()
]])
end
eq('foobar\n', read_file('Xconfirm_write_ro'))
- feed('<CR>') -- suppress hit-enter prompt
+ feed('<CR>') -- suppress hit-enter prompt
-- Try to write with read-only file permissions.
funcs.setfperm('Xconfirm_write_ro', 'r--r--r--')
@@ -375,7 +377,7 @@ describe(':confirm command dialog', function()
]])
end
eq('foo\n', read_file('Xconfirm_write_ro'))
- feed('<CR>') -- suppress hit-enter prompt
+ feed('<CR>') -- suppress hit-enter prompt
os.remove('Xconfirm_write_ro')
end)