refactor: format test/*

This commit is contained in:
Justin M. Keyes
2024-01-03 02:09:18 +01:00
parent 59d117ec99
commit 04f2f864e2
363 changed files with 30631 additions and 20833 deletions

View File

@@ -236,16 +236,16 @@ describe("'inccommand' for user commands", function()
clear()
screen = Screen.new(40, 17)
screen:set_default_attr_ids({
[1] = {background = Screen.colors.Yellow1},
[2] = {foreground = Screen.colors.Blue1, bold = true},
[3] = {reverse = true},
[4] = {reverse = true, bold = true},
[5] = {foreground = Screen.colors.Blue},
[1] = { background = Screen.colors.Yellow1 },
[2] = { foreground = Screen.colors.Blue1, bold = true },
[3] = { reverse = true },
[4] = { reverse = true, bold = true },
[5] = { foreground = Screen.colors.Blue },
})
screen:attach()
exec_lua(setup_replace_cmd)
command('set cmdwinheight=5')
insert[[
insert [[
text on line 1
more text on line 2
oh no, even more text
@@ -504,21 +504,21 @@ describe("'inccommand' with multiple buffers", function()
clear()
screen = Screen.new(40, 17)
screen:set_default_attr_ids({
[1] = {background = Screen.colors.Yellow1},
[2] = {foreground = Screen.colors.Blue1, bold = true},
[3] = {reverse = true},
[4] = {reverse = true, bold = true}
[1] = { background = Screen.colors.Yellow1 },
[2] = { foreground = Screen.colors.Blue1, bold = true },
[3] = { reverse = true },
[4] = { reverse = true, bold = true },
})
screen:attach()
exec_lua(setup_replace_cmd)
command('set cmdwinheight=10')
insert[[
insert [[
foo bar baz
bar baz foo
baz foo bar
]]
command('vsplit | enew')
insert[[
insert [[
bar baz foo
baz foo bar
foo bar baz