diff --git a/test/functional/ui/float_spec.lua b/test/functional/ui/float_spec.lua index 4bbaba9041..c35729cad2 100644 --- a/test/functional/ui/float_spec.lua +++ b/test/functional/ui/float_spec.lua @@ -132,12 +132,7 @@ describe('float window', function() new_curwin = vim.api.nvim_get_current_win() end }) - local opts = { - relative = "win", - row = 0, col = 0, - width = 1, height = 1, - noautocmd = false, - } + local opts = { relative = "win", row = 0, col = 0, width = 1, height = 1, noautocmd = false } local win = vim.api.nvim_open_win(buf, true, opts) return {new_triggered_before_enter, new_curwin, win} ]])) @@ -149,21 +144,10 @@ describe('float window', function() local height = exec_lua([[ vim.go.winheight = 20 local bufnr = vim.api.nvim_create_buf(false, true) - - local opts = { - height = 10, - col = 5, - row = 1, - relative = 'editor', - style = 'minimal', - width = 15 - } - + local opts = { height = 10, col = 5, row = 1, relative = 'editor', style = 'minimal', width = 15 } local win_id = vim.api.nvim_open_win(bufnr, true, opts) - return vim.api.nvim_win_get_height(win_id) ]]) - eq(10, height) end) @@ -171,169 +155,69 @@ describe('float window', function() local width = exec_lua([[ vim.go.winwidth = 20 local bufnr = vim.api.nvim_create_buf(false, true) - - local opts = { - height = 10, - col = 5, - row = 1, - relative = 'editor', - style = 'minimal', - width = 10 - } - + local opts = { height = 10, col = 5, row = 1, relative = 'editor', style = 'minimal', width = 10 } local win_id = vim.api.nvim_open_win(bufnr, true, opts) - return vim.api.nvim_win_get_width(win_id) ]]) - eq(10, width) end) it('opened with correct position', function() local pos = exec_lua([[ local bufnr = vim.api.nvim_create_buf(false, true) - - local opts = { - width = 10, - height = 10, - col = 7, - row = 9, - relative = 'editor', - style = 'minimal' - } - + local opts = { width = 10, height = 10, col = 7, row = 9, relative = 'editor', style = 'minimal' } local win_id = vim.api.nvim_open_win(bufnr, false, opts) - return vim.api.nvim_win_get_position(win_id) ]]) - - eq(9, pos[1]) - eq(7, pos[2]) + eq({ 9, 7 }, { pos[1], pos[2] }) end) it('opened with correct position relative to the mouse', function() api.nvim_input_mouse('left', 'press', '', 0, 10, 10) local pos = exec_lua([[ local bufnr = vim.api.nvim_create_buf(false, true) - - local opts = { - width = 10, - height = 10, - col = 1, - row = 2, - relative = 'mouse', - style = 'minimal' - } - + local opts = { width = 10, height = 10, col = 1, row = 2, relative = 'mouse', style = 'minimal' } local win_id = vim.api.nvim_open_win(bufnr, false, opts) - return vim.api.nvim_win_get_position(win_id) ]]) - - eq(12, pos[1]) - eq(11, pos[2]) + eq({ 12, 11 }, { pos[1], pos[2] }) end) it('opened with correct position relative to the cursor', function() local pos = exec_lua([[ local bufnr = vim.api.nvim_create_buf(false, true) - - local opts = { - width = 10, - height = 10, - col = 7, - row = 9, - relative = 'cursor', - style = 'minimal' - } - + local opts = { width = 10, height = 10, col = 7, row = 9, relative = 'cursor', style = 'minimal' } local win_id = vim.api.nvim_open_win(bufnr, false, opts) - return vim.api.nvim_win_get_position(win_id) ]]) - - eq(9, pos[1]) - eq(7, pos[2]) + eq({ 9, 7 }, { pos[1], pos[2] }) end) it('opened with correct position relative to another window', function() local pos = exec_lua([[ local bufnr = vim.api.nvim_create_buf(false, true) - - local par_opts = { - width = 50, - height = 50, - col = 7, - row = 9, - relative = 'editor', - style = 'minimal' - } - + local par_opts = { width = 50, height = 50, col = 7, row = 9, relative = 'editor', style = 'minimal' } local par_win_id = vim.api.nvim_open_win(bufnr, false, par_opts) - - local opts = { - width = 10, - height = 10, - col = 7, - row = 9, - relative = 'win', - style = 'minimal', - win = par_win_id - } - + local opts = { width = 10, height = 10, col = 7, row = 9, relative = 'win', style = 'minimal', win = par_win_id } local win_id = vim.api.nvim_open_win(bufnr, false, opts) - return vim.api.nvim_win_get_position(win_id) ]]) - - eq(18, pos[1]) - eq(14, pos[2]) + eq({ 18, 14 }, { pos[1], pos[2] }) end) it('opened with correct position relative to another relative window', function() local pos = exec_lua([[ local bufnr = vim.api.nvim_create_buf(false, true) - - local root_opts = { - width = 50, - height = 50, - col = 7, - row = 9, - relative = 'editor', - style = 'minimal' - } - + local root_opts = { width = 50, height = 50, col = 7, row = 9, relative = 'editor', style = 'minimal' } local root_win_id = vim.api.nvim_open_win(bufnr, false, root_opts) - - local par_opts = { - width = 20, - height = 20, - col = 2, - row = 3, - relative = 'win', - win = root_win_id, - style = 'minimal' - } - + local par_opts = { width = 20, height = 20, col = 2, row = 3, relative = 'win', win = root_win_id, style = 'minimal' } local par_win_id = vim.api.nvim_open_win(bufnr, false, par_opts) - - local opts = { - width = 10, - height = 10, - col = 3, - row = 2, - relative = 'win', - win = par_win_id, - style = 'minimal' - } - + local opts = { width = 10, height = 10, col = 3, row = 2, relative = 'win', win = par_win_id, style = 'minimal' } local win_id = vim.api.nvim_open_win(bufnr, false, opts) - return vim.api.nvim_win_get_position(win_id) ]]) - eq(14, pos[1]) - eq(12, pos[2]) + eq({ 14, 12 }, { pos[1], pos[2] }) end) it('error message when invalid field specified for split', function() @@ -349,35 +233,17 @@ describe('float window', function() it('error message when reconfig missing relative field', function() local bufnr = api.nvim_create_buf(false, true) - local opts = { - width = 10, - height = 10, - col = 5, - row = 5, - relative = 'editor', - style = 'minimal', - } + local opts = { width = 10, height = 10, col = 5, row = 5, relative = 'editor', style = 'minimal' } local winid = api.nvim_open_win(bufnr, true, opts) eq( "Missing 'relative' field when reconfiguring floating window 1001", - pcall_err(api.nvim_win_set_config, winid, { - width = 3, - height = 3, - row = 10, - col = 10, - }) + pcall_err(api.nvim_win_set_config, winid, { width = 3, height = 3, row = 10, col = 10 }) ) end) it('no error message when reconfig relative field on closed win', function() command('split') - local winid = api.nvim_open_win(0, false, { - relative = 'win', - width = 1, - height = 1, - col = 1, - row = 1, - }) + local winid = api.nvim_open_win(0, false, { relative = 'win', width = 1, height = 1, col = 1, row = 1 }) eq(1001, api.nvim_win_get_config(winid).win) -- But unrelated config doesn't clear parent win #34286 api.nvim_win_set_config(winid, { title = 'foo' }) @@ -396,14 +262,7 @@ describe('float window', function() local windo_count_before = eval('len(winids)') local winid = exec_lua([[ local bufnr = vim.api.nvim_create_buf(false, true) - local opts = { - relative = 'editor', - focusable = false, - height = 5, - width = 5, - col = 5, - row = 5, - } + local opts = { relative = 'editor', focusable = false, height = 5, width = 5, col = 5, row = 5 } return vim.api.nvim_open_win(bufnr, false, opts) ]]) command([[ @@ -423,14 +282,7 @@ describe('float window', function() local windo_count_before = eval('len(winids)') local winid = exec_lua([[ local bufnr = vim.api.nvim_create_buf(false, true) - local opts = { - relative = 'editor', - focusable = true, - height = 5, - width = 5, - col = 5, - row = 5, - } + local opts = { relative = 'editor', focusable = true, height = 5, width = 5, col = 5, row = 5 } return vim.api.nvim_open_win(bufnr, false, opts) ]]) command([[ @@ -445,14 +297,7 @@ describe('float window', function() it('is not active after windo when non-focusable #15374', function() local winid = exec_lua([[ local bufnr = vim.api.nvim_create_buf(false, true) - local opts = { - relative = 'editor', - focusable = false, - height = 5, - width = 5, - col = 5, - row = 5, - } + local opts = { relative = 'editor', focusable = false, height = 5, width = 5, col = 5, row = 5 } return vim.api.nvim_open_win(bufnr, false, opts) ]]) command('windo echo') @@ -462,14 +307,7 @@ describe('float window', function() it('is active after windo when focusable', function() local winid = exec_lua([[ local bufnr = vim.api.nvim_create_buf(false, true) - local opts = { - relative = 'editor', - focusable = true, - height = 5, - width = 5, - col = 5, - row = 5, - } + local opts = { relative = 'editor', focusable = true, height = 5, width = 5, col = 5, row = 5 } return vim.api.nvim_open_win(bufnr, false, opts) ]]) command('windo echo') @@ -480,14 +318,7 @@ describe('float window', function() command('copen') local winid = exec_lua([[ local bufnr = vim.api.nvim_create_buf(false, true) - local opts = { - relative = 'editor', - focusable = false, - height = 5, - width = 5, - col = 5, - row = 5, - } + local opts = { relative = 'editor', focusable = false, height = 5, width = 5, col = 5, row = 5 } return vim.api.nvim_open_win(bufnr, false, opts) ]]) command('wincmd t') @@ -499,14 +330,7 @@ describe('float window', function() local winids = exec_lua([[ local result = {vim.api.nvim_get_current_win()} local bufnr = vim.api.nvim_create_buf(false, true) - local opts = { - relative = 'editor', - focusable = false, - height = 5, - width = 5, - col = 5, - row = 5, - } + local opts = { relative = 'editor', focusable = false, height = 5, width = 5, col = 5, row = 5 } vim.api.nvim_open_win(bufnr, false, opts) opts.focusable = true table.insert(result, vim.api.nvim_open_win(bufnr, false, opts)) @@ -539,13 +363,7 @@ describe('float window', function() end }) local win_id - local fconfig = { - relative = 'editor', - row = 10, - col = 10, - width = 10, - height = 10, - } + local fconfig = { relative = 'editor', row = 10, col = 10, width = 10, height = 10 } --enter is false doesn't trigger win_id = vim.api.nvim_open_win(buf, false, fconfig) vim.api.nvim_win_close(win_id, true) @@ -674,14 +492,7 @@ describe('float window', function() botright vsplit %bdelete ]]) - api.nvim_open_win(0, false, { - relative = 'win', - win = 0, - row = 0, - col = 5, - width = 5, - height = 5, - }) + api.nvim_open_win(0, false, { relative = 'win', win = 0, row = 0, col = 5, width = 5, height = 5 }) assert_alive() end) @@ -1022,23 +833,8 @@ describe('float window', function() local screen = Screen.new(20, 10) screen:add_extra_attr_ids({ [100] = { bold = true, foreground = Screen.colors.Magenta } }) command('set showtabline=1 laststatus=1') - api.nvim_open_win(0, false, { - relative = 'laststatus', - border = 'single', - anchor = 'SE', - width = 5, - height = 1, - row = 0, - col = 1000, - }) - local tabwin = api.nvim_open_win(0, false, { - relative = 'tabline', - border = 'single', - width = 5, - height = 1, - row = 0, - col = 1000, - }) + api.nvim_open_win(0, false, { relative = 'laststatus', border = 'single', anchor = 'SE', width = 5, height = 1, row = 0, col = 1000 }) + local tabwin = api.nvim_open_win(0, false, { relative = 'tabline', border = 'single', width = 5, height = 1, row = 0, col = 1000 }) screen:expect([[ ^ {2:┌─────┐}| {1:~ }{2:│}{4: }{2:│}| @@ -1075,14 +871,7 @@ describe('float window', function() | ]]) command('quit') - api.nvim_win_set_config(tabwin, { - relative = 'tabline', - border = 'single', - width = 5, - height = 1, - row = 1, - col = 0, - }) + api.nvim_win_set_config(tabwin, { relative = 'tabline', border = 'single', width = 5, height = 1, row = 1, col = 0 }) screen:expect([[ {5: }{100:3}{5: Name] }{24: No Name]X}| ^ | @@ -1135,12 +924,7 @@ describe('float window', function() [7] = { foreground = Screen.colors.White, background = Screen.colors.Red }, [8] = { bold = true, foreground = Screen.colors.SeaGreen4 }, [9] = { background = Screen.colors.LightGrey, underline = true }, - [10] = { - background = Screen.colors.LightGrey, - underline = true, - bold = true, - foreground = Screen.colors.Magenta, - }, + [10] = { background = Screen.colors.LightGrey, underline = true, bold = true, foreground = Screen.colors.Magenta }, [11] = { bold = true, foreground = Screen.colors.Magenta }, [12] = { background = Screen.colors.Red, bold = true, foreground = Screen.colors.Blue1 }, [13] = { background = Screen.colors.WebGray }, @@ -1168,9 +952,7 @@ describe('float window', function() it('can be created and reconfigured', function() local buf = api.nvim_create_buf(false, false) local win = api.nvim_open_win(buf, false, { relative = 'editor', width = 20, height = 2, row = 2, col = 5 }) - local expected_pos = { - [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 }, - } + local expected_pos = { [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 } } if multigrid then screen:expect { @@ -1284,9 +1066,7 @@ describe('float window', function() {1: }| {2:~ }| ]], - float_pos = { - [5] = { 1002, 'NW', 4, 2, 10, true, 50, 1, 2, 30 }, - }, + float_pos = { [5] = { 1002, 'NW', 4, 2, 10, true, 50, 1, 2, 30 } }, } else screen:expect([[ @@ -1321,9 +1101,7 @@ describe('float window', function() {1: }| {2:~ }| ]], - float_pos = { - [5] = { 1002, 'NW', 4, 2, 10, true, 50, 1, 2, 25 }, - }, + float_pos = { [5] = { 1002, 'NW', 4, 2, 10, true, 50, 1, 2, 25 } }, } else screen:expect([[ @@ -1347,9 +1125,7 @@ describe('float window', function() command('set wd=1') local buf = api.nvim_create_buf(false, false) local win = api.nvim_open_win(buf, false, { relative = 'editor', width = 20, height = 2, row = 2, col = 5 }) - local expected_pos = { - [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 }, - } + local expected_pos = { [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 } } if multigrid then screen:expect { @@ -1574,9 +1350,7 @@ describe('float window', function() {22:y }| {22: }| ]], - float_pos = { - [5] = { 1002, 'NW', 2, 3, 3, true, 50, 1, 3, 3 }, - }, + float_pos = { [5] = { 1002, 'NW', 2, 3, 3, true, 50, 1, 3, 3 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 4, curline = 0, curcol = 0, linecount = 3, sum_scroll_delta = 0 }, [5] = { win = 1002, topline = 0, botline = 3, curline = 0, curcol = 0, linecount = 3, sum_scroll_delta = 0 }, @@ -1901,9 +1675,7 @@ describe('float window', function() {17:n̈̊}{1: BORDAA }{17:n̈̊}| {5:\}{7:ååååååååå}{5:x}| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 2, sum_scroll_delta = 0 }, @@ -1943,9 +1715,7 @@ describe('float window', function() {5:<}{1: halloj! }{5:>}| {5:<}{1: BORDAA }{5:>}| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 2, sum_scroll_delta = 0 }, @@ -1987,9 +1757,7 @@ describe('float window', function() {1: BORDAA }| {5:---------}| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 2, sum_scroll_delta = 0 }, @@ -2042,9 +1810,7 @@ describe('float window', function() {1: BORDAA }{26: }| {25: }{26: }| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 6, curline = 5, curcol = 0, linecount = 6, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 2, sum_scroll_delta = 0 }, @@ -2174,9 +1940,7 @@ describe('float window', function() {5:║}{1: BORDAA }{5:║}| {5:╚═════════╝}| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 2, sum_scroll_delta = 0 }, @@ -2228,9 +1992,7 @@ describe('float window', function() {1:Hello }| {2:~ }| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, @@ -2279,9 +2041,7 @@ describe('float window', function() {5:║}{1: BORDAA }{5:║}| {5:╚═════════╝}| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 2, sum_scroll_delta = 0 }, @@ -2319,9 +2079,7 @@ describe('float window', function() {5:║}{1: BORDAA }{5:║}| {5:╚═════════╝}| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 2, sum_scroll_delta = 0 }, @@ -2359,9 +2117,7 @@ describe('float window', function() {5:║}{1: BORDAA }{5:║}| {5:╚═════════╝}| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 2, sum_scroll_delta = 0 }, @@ -2399,9 +2155,7 @@ describe('float window', function() {5:║}{1: BORDAA }{5:║}| {5:╚═════════╝}| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 2, sum_scroll_delta = 0 }, @@ -2440,28 +2194,14 @@ describe('float window', function() {5:║}{1: BORDAA }{5:║}| {5:╚═════════╝}| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 2, sum_scroll_delta = 0 }, }, win_viewport_margins = { - [2] = { - bottom = 0, - left = 0, - right = 0, - top = 0, - win = 1000, - }, - [4] = { - bottom = 1, - left = 1, - right = 1, - top = 1, - win = 1001, - }, + [2] = { bottom = 0, left = 0, right = 0, top = 0, win = 1000 }, + [4] = { bottom = 1, left = 1, right = 1, top = 1, win = 1001 }, }, }) else @@ -2508,9 +2248,7 @@ describe('float window', function() {5:║}{1: BORDAA }{5:║}| {5:╚}{11:Left}{5:═════╝}| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 2, sum_scroll_delta = 0 }, @@ -2548,9 +2286,7 @@ describe('float window', function() {5:║}{1: BORDAA }{5:║}| {5:╚═}{11:Center}{5:══╝}| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 2, sum_scroll_delta = 0 }, @@ -2588,9 +2324,7 @@ describe('float window', function() {5:║}{1: BORDAA }{5:║}| {5:╚════}{11:Right}{5:╝}| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 2, sum_scroll_delta = 0 }, @@ -2628,9 +2362,7 @@ describe('float window', function() {5:║}{1: BORDAA }{5:║}| {5:╚═════}{11:🦄BB}{5:╝}| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 2, sum_scroll_delta = 0 }, @@ -2669,28 +2401,14 @@ describe('float window', function() {5:║}{1: BORDAA }{5:║}| {5:╚══════}{11:new}{5:╝}| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 2, sum_scroll_delta = 0 }, }, win_viewport_margins = { - [2] = { - bottom = 0, - left = 0, - right = 0, - top = 0, - win = 1000, - }, - [4] = { - bottom = 1, - left = 1, - right = 1, - top = 1, - win = 1001, - }, + [2] = { bottom = 0, left = 0, right = 0, top = 0, win = 1000 }, + [4] = { bottom = 1, left = 1, right = 1, top = 1, win = 1001 }, }, }) else @@ -2739,9 +2457,7 @@ describe('float window', function() {5:║}{1: BORDAA }{5:║}| {5:╚════}{11:Right}{5:╝}| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 2, sum_scroll_delta = 0 }, @@ -2779,9 +2495,7 @@ describe('float window', function() {5:║}{1: BORDAA }{5:║}| {5:╚═}{11:Center}{5:══╝}| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 2, sum_scroll_delta = 0 }, @@ -2819,9 +2533,7 @@ describe('float window', function() {5:║}{1: BORDAA }{5:║}| {5:╚}{11:Left}{5:═════╝}| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 2, sum_scroll_delta = 0 }, @@ -2867,9 +2579,7 @@ describe('float window', function() {5:║}{1: BORDAA }{5:║}| {5:╚═════}{11:🦄}{7:BB}{5:╝}| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 2, sum_scroll_delta = 0 }, @@ -2914,9 +2624,7 @@ describe('float window', function() {5:║}{1: BORDAA }{5:║}| {5:╚}🦄{7:BB}{5:═════╝}| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 2, sum_scroll_delta = 0 }, @@ -2995,9 +2703,7 @@ describe('float window', function() {5:│}{2:~ }{5:│}|*6 {5:└────────────────────────────────────────┘}| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 0, 0, true, 201, 2, 0, 0 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 0, 0, true, 201, 2, 0, 0 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, @@ -3044,9 +2750,7 @@ describe('float window', function() {5:║}{1:^ }{5:║}| {5:╚═════════╝}| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 0, 5, true, 50, 1, 0, 5 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 0, 5, true, 50, 1, 0, 5 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 3, curline = 2, curcol = 0, linecount = 3, sum_scroll_delta = 0 }, @@ -3135,9 +2839,7 @@ describe('float window', function() {5:║}{1:ac^c }{5:║}| {5:╚═════════╝}| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 0, 5, true, 50, 1, 0, 5 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 0, 5, true, 50, 1, 0, 5 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 3, curline = 2, curcol = 2, linecount = 3, sum_scroll_delta = 0 }, @@ -3233,18 +2935,8 @@ describe('float window', function() {5:║}{2:~ }{5:║}|*2 {5:╚═════════╝}| ]], - win_pos = { - [2] = { - height = 9, - startcol = 0, - startrow = 0, - width = 40, - win = 1000, - }, - }, - float_pos = { - [4] = { 1001, 'NW', 1, 0, 5, true, 50, 1, 0, 5 }, - }, + win_pos = { [2] = { height = 9, startcol = 0, startrow = 0, width = 40, win = 1000 } }, + float_pos = { [4] = { 1001, 'NW', 1, 0, 5, true, 50, 1, 0, 5 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, @@ -3283,18 +2975,8 @@ describe('float window', function() {5:║}{1:abb acc }{5:║}| {5:╚═════════╝}| ]], - win_pos = { - [2] = { - height = 9, - startcol = 0, - startrow = 0, - width = 40, - win = 1000, - }, - }, - float_pos = { - [4] = { 1001, 'NW', 1, 0, 5, true, 50, 1, 0, 5 }, - }, + win_pos = { [2] = { height = 9, startcol = 0, startrow = 0, width = 40, win = 1000 } }, + float_pos = { [4] = { 1001, 'NW', 1, 0, 5, true, 50, 1, 0, 5 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 2, sum_scroll_delta = 0 }, @@ -3343,12 +3025,8 @@ describe('float window', function() {1:line }| {1:abb acc }| ]], - win_pos = { - [2] = { height = 9, startcol = 0, startrow = 0, width = 40, win = 1000 }, - }, - float_pos = { - [4] = { 1001, 'NW', 1, 0, 5, true, 50, 1, 0, 5 }, - }, + win_pos = { [2] = { height = 9, startcol = 0, startrow = 0, width = 40, win = 1000 } }, + float_pos = { [4] = { 1001, 'NW', 1, 0, 5, true, 50, 1, 0, 5 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 2, sum_scroll_delta = 0 }, @@ -3397,9 +3075,7 @@ describe('float window', function() {1:abb acc }| {2:~ }| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 0, 5, true, 50, 1, 0, 5 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 0, 5, true, 50, 1, 0, 5 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 3, curline = 0, curcol = 0, linecount = 2, sum_scroll_delta = 0 }, @@ -3434,9 +3110,7 @@ describe('float window', function() {1:abb acc }| {2:~ }| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 0, 5, true, 50, 1, 0, 5 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 0, 5, true, 50, 1, 0, 5 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 3, curline = 0, curcol = 4, linecount = 2, sum_scroll_delta = 0 }, @@ -3473,9 +3147,7 @@ describe('float window', function() {1:^ }| {2:~ }|*2 ]], - float_pos = { - [4] = { 1001, 'NW', 1, 0, 5, true, 50, 1, 0, 5 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 0, 5, true, 50, 1, 0, 5 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, @@ -3599,9 +3271,7 @@ describe('float window', function() ## grid 4 {1:x}| ]], - float_pos = { - [4] = { 1001, 'NW', 2, 0, 4, false, 50, 1, 0, 4 }, - }, + float_pos = { [4] = { 1001, 'NW', 2, 0, 4, false, 50, 1, 0, 4 } }, } else screen:expect([[ @@ -3626,9 +3296,7 @@ describe('float window', function() ## grid 4 {1:x}| ]], - float_pos = { - [4] = { 1001, 'NW', 2, 0, 15, false, 50, 1, 0, 15 }, - }, + float_pos = { [4] = { 1001, 'NW', 2, 0, 15, false, 50, 1, 0, 15 } }, } else screen:expect([[ @@ -3926,9 +3594,7 @@ describe('float window', function() {1: }| {2:~ }| ]], - float_pos = { - [5] = { 1002, 'NW', 4, 0, 10, true, 50, 1, 4, 10 }, - }, + float_pos = { [5] = { 1002, 'NW', 4, 0, 10, true, 50, 1, 4, 10 } }, } else screen:expect([[ @@ -3968,9 +3634,7 @@ describe('float window', function() {1: }| {2:~ }| ]], - float_pos = { - [5] = { 1002, 'NW', 4, 1, 1, true, 50, 1, 5, 1 }, - }, + float_pos = { [5] = { 1002, 'NW', 4, 1, 1, true, 50, 1, 5, 1 } }, } else screen:expect([[ @@ -4010,9 +3674,7 @@ describe('float window', function() {1: }| {2:~ }| ]], - float_pos = { - [5] = { 1002, 'SW', 4, 0, 3, true, 50, 1, 2, 3 }, - }, + float_pos = { [5] = { 1002, 'SW', 4, 0, 3, true, 50, 1, 2, 3 } }, } else screen:expect([[ @@ -4052,9 +3714,7 @@ describe('float window', function() {1: }| {2:~ }| ]], - float_pos = { - [5] = { 1002, 'NW', 2, 1, 10, true, 50, 1, 1, 10 }, - }, + float_pos = { [5] = { 1002, 'NW', 2, 1, 10, true, 50, 1, 1, 10 } }, } else screen:expect([[ @@ -4094,9 +3754,7 @@ describe('float window', function() {1: }| {2:~ }| ]], - float_pos = { - [5] = { 1002, 'SE', 2, 3, 39, true, 50, 1, 1, 19 }, - }, + float_pos = { [5] = { 1002, 'SE', 2, 3, 39, true, 50, 1, 1, 19 } }, } else screen:expect([[ @@ -4136,37 +3794,11 @@ describe('float window', function() {1: }| {2:~ }| ]], - float_pos = { - [5] = { 1002, 'NE', 4, 0, 50, true, 50, 1, 4, 20 }, - }, + float_pos = { [5] = { 1002, 'NE', 4, 0, 50, true, 50, 1, 4, 20 } }, win_viewport = { - [2] = { - topline = 0, - botline = 3, - curline = 0, - curcol = 3, - linecount = 2, - sum_scroll_delta = 0, - win = 1000, - }, - [4] = { - topline = 0, - botline = 3, - curline = 0, - curcol = 3, - linecount = 2, - sum_scroll_delta = 0, - win = 1001, - }, - [5] = { - topline = 0, - botline = 2, - curline = 0, - curcol = 0, - linecount = 1, - sum_scroll_delta = 0, - win = 1002, - }, + [2] = { topline = 0, botline = 3, curline = 0, curcol = 3, linecount = 2, sum_scroll_delta = 0, win = 1000 }, + [4] = { topline = 0, botline = 3, curline = 0, curcol = 3, linecount = 2, sum_scroll_delta = 0, win = 1001 }, + [5] = { topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0, win = 1002 }, }, } else @@ -4251,9 +3883,7 @@ describe('float window', function() {5:║}{1: BORDAA }{5:║}| {5:╚═════════╝}| ]], - float_pos = { - [5] = { 1002, 'NW', 4, 1, 14, true, 50, 1, 7, 14 }, - }, + float_pos = { [5] = { 1002, 'NW', 4, 1, 14, true, 50, 1, 7, 14 } }, } else screen:expect([[ @@ -4297,9 +3927,7 @@ describe('float window', function() {5:║}{1: BORDAA }{5:║}| {5:╚═════════╝}| ]], - float_pos = { - [5] = { 1002, 'NE', 4, 0, 14, true, 50, 1, 6, 3 }, - }, + float_pos = { [5] = { 1002, 'NE', 4, 0, 14, true, 50, 1, 6, 3 } }, } else screen:expect([[ @@ -4343,9 +3971,7 @@ describe('float window', function() {5:║}{1: BORDAA }{5:║}| {5:╚═════════╝}| ]], - float_pos = { - [5] = { 1002, 'SE', 4, 1, 14, true, 50, 1, 3, 3 }, - }, + float_pos = { [5] = { 1002, 'SE', 4, 1, 14, true, 50, 1, 3, 3 } }, } else screen:expect([[ @@ -4389,9 +4015,7 @@ describe('float window', function() {5:║}{1: BORDAA }{5:║}| {5:╚═════════╝}| ]], - float_pos = { - [5] = { 1002, 'SW', 4, 0, 14, true, 50, 1, 2, 14 }, - }, + float_pos = { [5] = { 1002, 'SW', 4, 0, 14, true, 50, 1, 2, 14 } }, } else screen:expect([[ @@ -4640,9 +4264,7 @@ describe('float window', function() ## grid 4 {1:some info! }| ]], - float_pos = { - [4] = { 1001, 'NW', 2, 3, 2, true, 50, 1, 3, 2 }, - }, + float_pos = { [4] = { 1001, 'NW', 2, 3, 2, true, 50, 1, 3, 2 } }, } else screen:expect { @@ -4688,9 +4310,7 @@ describe('float window', function() ## grid 4 {1:some info! }| ]], - float_pos = { - [4] = { 1001, 'NW', 2, 2, 2, true, 50, 1, 2, 2 }, - }, + float_pos = { [4] = { 1001, 'NW', 2, 2, 2, true, 50, 1, 2, 2 } }, } else screen:expect { @@ -4719,9 +4339,7 @@ describe('float window', function() ## grid 4 {1:some info! }| ]], - float_pos = { - [4] = { 1001, 'NW', 2, 1, 32, true, 50, 1, 1, 32 }, - }, + float_pos = { [4] = { 1001, 'NW', 2, 1, 32, true, 50, 1, 1, 32 } }, } else -- note: appears misaligned due to cursor @@ -4754,9 +4372,7 @@ describe('float window', function() ## grid 4 {1:some info! }| ]], - float_pos = { - [4] = { 1001, 'NW', 2, 2, 7, true, 50, 1, 2, 7 }, - }, + float_pos = { [4] = { 1001, 'NW', 2, 2, 7, true, 50, 1, 2, 7 } }, } else screen:expect { @@ -4790,9 +4406,7 @@ describe('float window', function() ## grid 4 {1:some info! }| ]], - float_pos = { - [4] = { 1001, 'SW', 2, 1, 7, true, 50, 1, 0, 7 }, - }, + float_pos = { [4] = { 1001, 'SW', 2, 1, 7, true, 50, 1, 0, 7 } }, } else screen:expect { @@ -4873,9 +4487,7 @@ describe('float window', function() ## grid 4 {1:some info! }| ]], - float_pos = { - [4] = { 1001, 'NW', 2, 2, 5, true, 50, 1, 2, 5 }, - }, + float_pos = { [4] = { 1001, 'NW', 2, 2, 5, true, 50, 1, 2, 5 } }, } else screen:expect { @@ -4909,9 +4521,7 @@ describe('float window', function() ## grid 4 {1:some info! }| ]], - float_pos = { - [4] = { 1001, 'NW', 2, 3, 7, true, 50, 1, 3, 7 }, - }, + float_pos = { [4] = { 1001, 'NW', 2, 3, 7, true, 50, 1, 3, 7 } }, } else screen:expect { @@ -4942,9 +4552,7 @@ describe('float window', function() ## grid 4 {1:some info! }| ]], - float_pos = { - [4] = { 1001, 'NW', 2, 2, 0, true, 50, 1, 2, 0 }, - }, + float_pos = { [4] = { 1001, 'NW', 2, 2, 0, true, 50, 1, 2, 0 } }, } else screen:expect { @@ -4999,9 +4607,7 @@ describe('float window', function() ## grid 4 {1:some floaty text }| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 3, 1, true, 50, 1, 3, 1 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 3, 1, true, 50, 1, 3, 1 } }, } else screen:expect([[ @@ -5022,9 +4628,7 @@ describe('float window', function() screen2:set_default_attr_ids(attrs) local buf = api.nvim_create_buf(false, false) api.nvim_open_win(buf, true, { relative = 'editor', width = 20, height = 2, row = 2, col = 5 }) - local expected_pos = { - [2] = { 1001, 'NW', 1, 2, 5 }, - } + local expected_pos = { [2] = { 1001, 'NW', 1, 2, 5 } } screen:expect { grid = [[ ## grid 1 @@ -5069,9 +4673,7 @@ describe('float window', function() {1:float }| {2:~ }| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 10, true, 50, 1, 2, 10 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 10, true, 50, 1, 2, 10 } }, } else screen:expect([[ @@ -5103,9 +4705,7 @@ describe('float window', function() {1:float }| {2:~ }| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 10, true, 50, 1, 0, 10 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 10, true, 50, 1, 0, 10 } }, } else screen:expect([[ @@ -5135,9 +4735,7 @@ describe('float window', function() {1:float }| {2:~ }| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 10, true, 50, 1, 0, 10 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 10, true, 50, 1, 0, 10 } }, } else screen:expect([[ @@ -5166,9 +4764,7 @@ describe('float window', function() {1:float }| {2:~ }| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 10, true, 50, 1, 0, 10 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 10, true, 50, 1, 0, 10 } }, } else screen:expect([[ @@ -5195,9 +4791,7 @@ describe('float window', function() {1:^float }| {2:~ }| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 10, true, 50, 1, 0, 10 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 10, true, 50, 1, 0, 10 } }, } else screen:expect([[ @@ -5225,9 +4819,7 @@ describe('float window', function() {1:^float }| {2:~ }| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 10, true, 50, 1, 2, 10 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 10, true, 50, 1, 2, 10 } }, } else screen:expect([[ @@ -5259,9 +4851,7 @@ describe('float window', function() {1:very }| {1:float }| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 10, true, 50, 1, 2, 10 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 10, true, 50, 1, 2, 10 } }, } else screen:expect([[ @@ -5292,9 +4882,7 @@ describe('float window', function() {1:very }| {1:float }| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 10, true, 50, 1, 2, 10 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 10, true, 50, 1, 2, 10 } }, } else screen:expect([[ @@ -5325,9 +4913,7 @@ describe('float window', function() {1:very }| {1:float }| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 10, true, 50, 1, 2, 10 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 10, true, 50, 1, 2, 10 } }, } else screen:expect([[ @@ -5358,9 +4944,7 @@ describe('float window', function() {1:very }| {1:float }| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 10, true, 50, 1, 2, 9 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 10, true, 50, 1, 2, 9 } }, } else screen:expect([[ @@ -5391,9 +4975,7 @@ describe('float window', function() {1:very }| {1:float }| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 10, true, 50, 1, 2, 1 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 10, true, 50, 1, 2, 1 } }, } else screen:expect([[ @@ -5424,9 +5006,7 @@ describe('float window', function() {1:very }| {1:float }| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 10, true, 50, 1, 2, 0 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 10, true, 50, 1, 2, 0 } }, } else screen:expect([[ @@ -5457,9 +5037,7 @@ describe('float window', function() {1:very }| {1:float }| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 10, true, 50, 1, 2, 0 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 10, true, 50, 1, 2, 0 } }, } else screen:expect([[ @@ -5490,9 +5068,7 @@ describe('float window', function() {1:very }| {1:float }| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 10, true, 50, 1, 2, 0 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 10, true, 50, 1, 2, 0 } }, } else screen:expect([[ @@ -5523,9 +5099,7 @@ describe('float window', function() {1:very }| {1:float }| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 10, true, 50, 1, 0, 0 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 10, true, 50, 1, 0, 0 } }, } else screen:expect([[ @@ -5551,9 +5125,7 @@ describe('float window', function() {1:very }| {1:float }| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 10, true, 50, 1, 2, 10 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 10, true, 50, 1, 2, 10 } }, } else screen:expect([[ @@ -5569,16 +5141,11 @@ describe('float window', function() end) it('does not crash with inccommand #9379', function() - local expected_pos = { - [4] = { 1001, 'NW', 1, 2, 0, true, 50, 1, 2, 0 }, - } - + local expected_pos = { [4] = { 1001, 'NW', 1, 2, 0, true, 50, 1, 2, 0 } } command('set inccommand=split') command('set laststatus=2') - local buf = api.nvim_create_buf(false, false) api.nvim_open_win(buf, true, { relative = 'editor', width = 30, height = 3, row = 2, col = 0 }) - insert([[ foo bar @@ -5616,7 +5183,6 @@ describe('float window', function() end feed(':%s/.') - if multigrid then screen:expect { grid = [[ @@ -5708,9 +5274,7 @@ describe('float window', function() {7:^ }| {12:~ }|*3 ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 } }, } else screen:expect([[ @@ -5778,9 +5342,7 @@ describe('float window', function() {7:x a^a }| {12:~ }|*3 ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 } }, } else screen:expect([[ @@ -5845,9 +5407,7 @@ describe('float window', function() {7:x aa }| {12:~ }|*3 ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 } }, } else screen:expect([[ @@ -5921,14 +5481,8 @@ describe('float window', function() {7:x aa^ }| {12:~ }|*3 ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 }, - }, - popupmenu = { - anchor = { 4, 0, 2 }, - items = items, - pos = 0, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 } }, + popupmenu = { anchor = { 4, 0, 2 }, items = items, pos = 0 }, } else screen:expect { @@ -5939,11 +5493,7 @@ describe('float window', function() {0:~ }{12:~ }{0: }|*3 {3:-- INSERT --} | ]], - popupmenu = { - anchor = { 1, 2, 7 }, - items = items, - pos = 0, - }, + popupmenu = { anchor = { 1, 2, 7 }, items = items, pos = 0 }, } end @@ -5963,9 +5513,7 @@ describe('float window', function() {7:x a^a }| {12:~ }|*3 ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 } }, } else screen:expect([[ @@ -5995,14 +5543,8 @@ describe('float window', function() {7:x aa }| {12:~ }|*3 ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 }, - }, - popupmenu = { - anchor = { 2, 0, 0 }, - items = items, - pos = 0, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 } }, + popupmenu = { anchor = { 2, 0, 0 }, items = items, pos = 0 }, } else screen:expect { @@ -6013,11 +5555,7 @@ describe('float window', function() {0:~ }{12:~ }{0: }|*3 {3:-- INSERT --} | ]], - popupmenu = { - anchor = { 1, 0, 0 }, - items = items, - pos = 0, - }, + popupmenu = { anchor = { 1, 0, 0 }, items = items, pos = 0 }, } end @@ -6037,9 +5575,7 @@ describe('float window', function() {7:x aa }| {12:~ }|*3 ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 } }, } else screen:expect([[ @@ -6075,9 +5611,7 @@ describe('float window', function() {1:word }| {1:longtext }| ]], - float_pos = { - [4] = { -1, 'NW', 2, 1, 0, false, 100, 1, 1, 0 }, - }, + float_pos = { [4] = { -1, 'NW', 2, 1, 0, false, 100, 1, 1, 0 } }, } else screen:expect([[ @@ -6146,9 +5680,7 @@ describe('float window', function() {15:some info }| {15:about item }| ]], - float_pos = { - [5] = { 1001, 'NW', 2, 1, 12, true, 50, 1, 1, 12 }, - }, + float_pos = { [5] = { 1001, 'NW', 2, 1, 12, true, 50, 1, 1, 12 } }, } else screen:expect([[ @@ -6199,9 +5731,7 @@ describe('float window', function() {1:word }| {1:longtext }| ]], - float_pos = { - [4] = { -1, 'NW', 2, 1, 0, false, 100, 1, 1, 0 }, - }, + float_pos = { [4] = { -1, 'NW', 2, 1, 0, false, 100, 1, 1, 0 } }, } else screen:expect([[ @@ -6257,9 +5787,7 @@ describe('float window', function() here | float | ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 2, sum_scroll_delta = 0 }, @@ -6290,9 +5818,7 @@ describe('float window', function() local buf = api.nvim_create_buf(false, false) win = api.nvim_open_win(buf, false, { relative = 'editor', width = 20, height = 2, row = 2, col = 5 }) api.nvim_buf_set_lines(buf, 0, -1, true, { 'y' }) - expected_pos = { - [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 }, - } + expected_pos = { [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 } } if multigrid then screen:expect { grid = [[ @@ -6904,9 +6430,7 @@ describe('float window', function() {1:^y }| {2:~ }|*5 ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 0, 5 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 0, 5 } }, } else screen:expect([[ @@ -7050,9 +6574,7 @@ describe('float window', function() {1:^y }| {2:~ }| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 0 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 0 } }, } else screen:expect([[ @@ -7584,9 +7106,7 @@ describe('float window', function() {1:^y }| {2:~ }| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 } }, } else screen:expect([[ @@ -8311,9 +7831,7 @@ describe('float window', function() {1:bar }| {1:baz }| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 3, curline = 0, curcol = 0, linecount = 3, sum_scroll_delta = 0 }, @@ -8336,9 +7854,7 @@ describe('float window', function() {1:bar }| {1:baz }| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 3, curline = 0, curcol = 0, linecount = 3, sum_scroll_delta = 0 }, @@ -8361,9 +7877,7 @@ describe('float window', function() {27:ba}{1:^r }| {1:baz }| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 3, curline = 1, curcol = 2, linecount = 3, sum_scroll_delta = 0 }, @@ -8432,9 +7946,7 @@ describe('float window', function() {5:│}{1:baz }{5:│}| {5:└────────────────────┘}| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 0, 5, true, 50, 1, 0, 5 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 0, 5, true, 50, 1, 0, 5 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 3, curline = 0, curcol = 0, linecount = 3, sum_scroll_delta = 0 }, @@ -8459,9 +7971,7 @@ describe('float window', function() {5:│}{1:baz }{5:│}| {5:└────────────────────┘}| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 0, 5, true, 50, 1, 0, 5 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 0, 5, true, 50, 1, 0, 5 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 3, curline = 0, curcol = 0, linecount = 3, sum_scroll_delta = 0 }, @@ -8486,9 +7996,7 @@ describe('float window', function() {5:│}{1:baz }{5:│}| {5:└────────────────────┘}| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 0, 5, true, 50, 1, 0, 5 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 0, 5, true, 50, 1, 0, 5 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 3, curline = 1, curcol = 2, linecount = 3, sum_scroll_delta = 0 }, @@ -8557,9 +8065,7 @@ describe('float window', function() {1:bar }| {1:baz }| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 1, 5, true, 50, 1, 1, 5 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 1, 5, true, 50, 1, 1, 5 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 3, curline = 0, curcol = 0, linecount = 3, sum_scroll_delta = 0 }, @@ -8583,9 +8089,7 @@ describe('float window', function() {1:bar }| {1:baz }| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 1, 5, true, 50, 1, 1, 5 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 1, 5, true, 50, 1, 1, 5 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 3, curline = 0, curcol = 0, linecount = 3, sum_scroll_delta = 0 }, @@ -8609,9 +8113,7 @@ describe('float window', function() {27:ba}{1:^r }| {1:baz }| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 1, 5, true, 50, 1, 1, 5 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 1, 5, true, 50, 1, 1, 5 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 3, curline = 1, curcol = 2, linecount = 3, sum_scroll_delta = 0 }, @@ -8768,9 +8270,7 @@ describe('float window', function() {5:│}{1: }{5:│}|*3 {5:└────────────────────┘}| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 0, 5, true, 50, 1, 0, 5 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 0, 5, true, 50, 1, 0, 5 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 3, curline = 0, curcol = 0, linecount = 3, sum_scroll_delta = 0 }, @@ -8829,9 +8329,7 @@ describe('float window', function() {5:│}{2:~ }{5:│}| {5:└────────────────────┘}| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 0, 5, true, 50, 1, 0, 5 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 0, 5, true, 50, 1, 0, 5 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 4, curline = 0, curcol = 0, linecount = 3, sum_scroll_delta = 0 }, @@ -8870,9 +8368,7 @@ describe('float window', function() {5:│}{19:│}{1: }{5:│}| {5:└────────────────────┘}| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 0, 5, true, 50, 1, 0, 5 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 0, 5, true, 50, 1, 0, 5 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 3, curline = 0, curcol = 0, linecount = 3, sum_scroll_delta = 0 }, @@ -9385,9 +8881,7 @@ describe('float window', function() {5: x x x x}| {5: }| ]], - float_pos = { - [5] = { 1002, 'NW', 1, 0, 11, true, 50, 1, 0, 11 }, - }, + float_pos = { [5] = { 1002, 'NW', 1, 0, 11, true, 50, 1, 0, 11 } }, } else screen:expect([[ @@ -9417,9 +8911,7 @@ describe('float window', function() {5: x x x x}| {5: }| ]], - float_pos = { - [5] = { 1002, 'NW', 1, 0, 12, true, 50, 1, 0, 12 }, - }, + float_pos = { [5] = { 1002, 'NW', 1, 0, 12, true, 50, 1, 0, 12 } }, } else screen:expect([[ @@ -9579,9 +9071,7 @@ describe('float window', function() {7: }| {7:~ }| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, @@ -9679,15 +9169,7 @@ describe('float window', function() {17: }| {17:~ }| ]], - win_pos = { - [2] = { - height = 6, - startcol = 0, - startrow = 0, - width = 40, - win = 1000, - }, - }, + win_pos = { [2] = { height = 6, startcol = 0, startrow = 0, width = 40, win = 1000 } }, float_pos = { [4] = { 1001, 'NW', 1, 2, 5, true, 50, 3, 2, 5 }, [5] = { 1002, 'NW', 1, 3, 8, true, 50, 1, 3, 8 }, @@ -9733,9 +9215,7 @@ describe('float window', function() {7: }| {7:~ }| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, @@ -9833,15 +9313,7 @@ describe('float window', function() {1: }| {1:~ }| ]], - win_pos = { - [2] = { - height = 6, - startcol = 0, - startrow = 0, - width = 40, - win = 1000, - }, - }, + win_pos = { [2] = { height = 6, startcol = 0, startrow = 0, width = 40, win = 1000 } }, float_pos = { [4] = { 1001, 'NW', 1, 2, 5, true, 50, 3, 2, 5 }, [5] = { 1002, 'NW', 1, 4, 10, true, 50, 2, 4, 10 }, @@ -10026,27 +9498,9 @@ describe('float window', function() [6] = { win = 1003, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, }, win_viewport_margins = { - [2] = { - bottom = 0, - left = 0, - right = 0, - top = 0, - win = 1000, - }, - [4] = { - bottom = 1, - left = 1, - right = 1, - top = 1, - win = 1001, - }, - [6] = { - bottom = 1, - left = 1, - right = 1, - top = 1, - win = 1003, - }, + [2] = { bottom = 0, left = 0, right = 0, top = 0, win = 1000 }, + [4] = { bottom = 1, left = 1, right = 1, top = 1, win = 1001 }, + [6] = { bottom = 1, left = 1, right = 1, top = 1, win = 1003 }, }, }) else @@ -10082,9 +9536,7 @@ describe('float window', function() {1: }| {2:~ }| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 1, 5, true, 50, 1, 1, 5 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 1, 5, true, 50, 1, 1, 5 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, @@ -10124,9 +9576,7 @@ describe('float window', function() {5:│}{2:~ }{5:│}|*2 {5:└───────────────┘}| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 0, 4, true, 50, 1, 0, 4 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 0, 4, true, 50, 1, 0, 4 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, @@ -10180,9 +9630,7 @@ describe('float window', function() {5:│}{1: }{5:│}|*4 {5:└────────────────────────────────────────┘}| ]], - float_pos = { - [4] = { 1001, 'SW', 1, 9, 0, true, 50, 1, 3, 0 }, - }, + float_pos = { [4] = { 1001, 'SW', 1, 9, 0, true, 50, 1, 3, 0 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, @@ -10223,9 +9671,7 @@ describe('float window', function() {5:│}{1: }{5:│}|*2 {5:└────────────────────────────────────────┘}| ]], - float_pos = { - [4] = { 1001, 'SW', 1, 9, 0, true, 50, 1, 5, 0 }, - }, + float_pos = { [4] = { 1001, 'SW', 1, 9, 0, true, 50, 1, 5, 0 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, @@ -10299,9 +9745,7 @@ describe('float window', function() {5:│}{1: }{5:│}|*4 {5:└────────────────────────────────────────┘}| ]], - float_pos = { - [4] = { 1001, 'SW', 1, 8, 0, true, 50, 1, 2, 0 }, - }, + float_pos = { [4] = { 1001, 'SW', 1, 8, 0, true, 50, 1, 2, 0 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, @@ -10349,9 +9793,7 @@ describe('float window', function() {5:│}{1: }{5:│}|*4 {5:└────────────────────────────────────────┘}| ]], - float_pos = { - [4] = { 1001, 'SW', 1, 8, 0, true, 50, 1, 4, 0 }, - }, + float_pos = { [4] = { 1001, 'SW', 1, 8, 0, true, 50, 1, 4, 0 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, @@ -10388,9 +9830,7 @@ describe('float window', function() {5:│}{1: }{5:│}|*2 {5:└────────────────────────────────────────┘}| ]], - float_pos = { - [4] = { 1001, 'SW', 1, 8, 0, true, 50, 1, 4, 0 }, - }, + float_pos = { [4] = { 1001, 'SW', 1, 8, 0, true, 50, 1, 4, 0 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, @@ -10486,9 +9926,7 @@ describe('float window', function() {1:cd }| {2:~ }| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 1, 1, true, 50, 1, 1, 1 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 1, 1, true, 50, 1, 1, 1 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 3, curline = 1, curcol = 1, linecount = 2, sum_scroll_delta = 0 }, @@ -10524,9 +9962,7 @@ describe('float window', function() {1:c^d }| {2:~ }| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 1, 1, true, 50, 1, 1, 1 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 1, 1, true, 50, 1, 1, 1 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 3, curline = 1, curcol = 1, linecount = 2, sum_scroll_delta = 0 }, @@ -10567,9 +10003,7 @@ describe('float window', function() {5:│}{2:~ }{5:│}| {5:└────┘}| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 1, 1, true, 50, 1, 1, 1 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 1, 1, true, 50, 1, 1, 1 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 3, curline = 1, curcol = 1, linecount = 2, sum_scroll_delta = 0 }, @@ -10608,9 +10042,7 @@ describe('float window', function() {5:│}{2:~ }{5:│}| {5:└────┘}| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 1, 1, true, 50, 1, 1, 1 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 1, 1, true, 50, 1, 1, 1 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 3, curline = 1, curcol = 1, linecount = 2, sum_scroll_delta = 0 }, @@ -10652,9 +10084,7 @@ describe('float window', function() {5:│}{1:cd }{5:│}| {5:└────┘}| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 1, 1, true, 50, 1, 1, 1 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 1, 1, true, 50, 1, 1, 1 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 2, curline = 1, curcol = 1, linecount = 2, sum_scroll_delta = 0 }, @@ -10693,9 +10123,7 @@ describe('float window', function() {5:│}{1:c^d }{5:│}| {5:└────┘}| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 1, 1, true, 50, 1, 1, 1 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 1, 1, true, 50, 1, 1, 1 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 2, curline = 1, curcol = 1, linecount = 2, sum_scroll_delta = 0 }, @@ -10741,9 +10169,7 @@ describe('float window', function() {5:│}{2: ~}{5:│}| {5:└─────┘}| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 1, 1, true, 50, 1, 1, 1 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 1, 1, true, 50, 1, 1, 1 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 3, curline = 1, curcol = 2, linecount = 2, sum_scroll_delta = 0 }, @@ -10880,20 +10306,8 @@ describe('float window', function() [4] = { win = 1001, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, }, win_viewport_margins = { - [2] = { - bottom = 0, - left = 0, - right = 0, - top = 0, - win = 1000, - }, - [4] = { - bottom = 0, - left = 0, - right = 0, - top = 0, - win = 1001, - }, + [2] = { bottom = 0, left = 0, right = 0, top = 0, win = 1000 }, + [4] = { bottom = 0, left = 0, right = 0, top = 0, win = 1001 }, }, }) else @@ -10928,20 +10342,8 @@ describe('float window', function() [4] = { win = 1001, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, }, win_viewport_margins = { - [2] = { - bottom = 0, - left = 0, - right = 0, - top = 0, - win = 1000, - }, - [4] = { - bottom = 0, - left = 0, - right = 0, - top = 0, - win = 1001, - }, + [2] = { bottom = 0, left = 0, right = 0, top = 0, win = 1000 }, + [4] = { bottom = 0, left = 0, right = 0, top = 0, win = 1001 }, }, }) else @@ -10977,20 +10379,8 @@ describe('float window', function() [4] = { win = 1001, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, }, win_viewport_margins = { - [2] = { - bottom = 0, - left = 0, - right = 0, - top = 0, - win = 1000, - }, - [4] = { - bottom = 0, - left = 0, - right = 0, - top = 0, - win = 1001, - }, + [2] = { bottom = 0, left = 0, right = 0, top = 0, win = 1000 }, + [4] = { bottom = 0, left = 0, right = 0, top = 0, win = 1001 }, }, }) else @@ -11023,36 +10413,16 @@ describe('float window', function() {1:^ }| {2:~ }|*3 ]], - float_pos = { - [5] = { 1002, 'NW', 1, 1, 2, true, 50, 1, 1, 2 }, - }, + float_pos = { [5] = { 1002, 'NW', 1, 1, 2, true, 50, 1, 1, 2 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [5] = { win = 1002, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, }, win_viewport_margins = { - [2] = { - bottom = 0, - left = 0, - right = 0, - top = 0, - win = 1000, - }, - [4] = { - bottom = 0, - left = 0, - right = 0, - top = 0, - win = 1001, - }, - [5] = { - bottom = 0, - left = 0, - right = 0, - top = 0, - win = 1002, - }, + [2] = { bottom = 0, left = 0, right = 0, top = 0, win = 1000 }, + [4] = { bottom = 0, left = 0, right = 0, top = 0, win = 1001 }, + [5] = { bottom = 0, left = 0, right = 0, top = 0, win = 1002 }, }, }) else @@ -11277,9 +10647,7 @@ describe('float window', function() {5:│}{1:^ }{5:│}| {5:└─────┘}| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 100, 1, true, 50, 1, 1, 1 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 100, 1, true, 50, 1, 1, 1 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 1, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, @@ -11316,9 +10684,7 @@ describe('float window', function() {5:│}{1:^ }{5:│}| {5:└─────┘}| ]], - float_pos = { - [4] = { 1001, 'NW', 1, 100, 1, true, 300, 2, 4, 1 }, - }, + float_pos = { [4] = { 1001, 'NW', 1, 100, 1, true, 300, 2, 4, 1 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 1, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, @@ -11381,9 +10747,7 @@ describe('float window', function() {1: }| {2:~ }| ]], - float_pos = { - [4] = { 1001, 'NW', 2, 0, 0, true, 50, 1, 0, 0 }, - }, + float_pos = { [4] = { 1001, 'NW', 2, 0, 0, true, 50, 1, 0, 0 } }, win_viewport = { [2] = { win = 1000, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, [4] = { win = 1001, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0 }, diff --git a/test/functional/ui/popupmenu_spec.lua b/test/functional/ui/popupmenu_spec.lua index cbef2ac818..10b1027d84 100644 --- a/test/functional/ui/popupmenu_spec.lua +++ b/test/functional/ui/popupmenu_spec.lua @@ -1229,9 +1229,7 @@ describe('builtin popupmenu', function() {n:gg }{s: }| {n:hh }{s: }| ]], - float_pos = { - [5] = { -1, 'NW', 2, 2, 0, false, 100, 1, 11, 0 }, - }, + float_pos = { [5] = { -1, 'NW', 2, 2, 0, false, 100, 1, 11, 0 } }, } else screen:expect([[ @@ -1287,9 +1285,7 @@ describe('builtin popupmenu', function() {n:gg }{s: }| {n:hh }{s: }| ]], - float_pos = { - [5] = { -1, 'NW', 2, 2, 0, false, 100, 1, 2, 0 }, - }, + float_pos = { [5] = { -1, 'NW', 2, 2, 0, false, 100, 1, 2, 0 } }, } else screen:expect([[ @@ -1363,9 +1359,7 @@ describe('builtin popupmenu', function() {n:ll }{s: }| {n:mm }{s: }| ]], - float_pos = { - [5] = { -1, 'SW', 2, 12, 0, false, 100, 1, 4, 0 }, - }, + float_pos = { [5] = { -1, 'SW', 2, 12, 0, false, 100, 1, 4, 0 } }, } else screen:expect([[ @@ -1439,9 +1433,7 @@ describe('builtin popupmenu', function() {n:hh }{c: }| {n:ii }{s: }| ]], - float_pos = { - [5] = { -1, 'SW', 2, 8, 0, false, 100, 1, 8, 0 }, - }, + float_pos = { [5] = { -1, 'SW', 2, 8, 0, false, 100, 1, 8, 0 } }, } else screen:expect([[ @@ -1514,9 +1506,7 @@ describe('builtin popupmenu', function() {n:gg }{s: }| {n:hh }{s: }| ]], - float_pos = { - [5] = { -1, 'SW', 2, 8, 0, false, 100, 1, 0, 0 }, - }, + float_pos = { [5] = { -1, 'SW', 2, 8, 0, false, 100, 1, 0, 0 } }, } else screen:expect([[ @@ -1599,9 +1589,7 @@ describe('builtin popupmenu', function() {n:ab5 }{s: }| {n:ab6 }{s: }| ]], - float_pos = { - [5] = { -1, 'SW', 2, 6, 0, false, 100, 1, 9, 0 }, - }, + float_pos = { [5] = { -1, 'SW', 2, 6, 0, false, 100, 1, 9, 0 } }, }) else screen:expect([[ @@ -1677,9 +1665,7 @@ describe('builtin popupmenu', function() {n:ab4 }{s: }| {n:ab5 }{s: }| ]], - float_pos = { - [5] = { -1, 'SW', 2, 5, 0, false, 100, 1, 9, 0 }, - }, + float_pos = { [5] = { -1, 'SW', 2, 5, 0, false, 100, 1, 9, 0 } }, }) else screen:expect([[ @@ -1736,9 +1722,7 @@ describe('builtin popupmenu', function() {n:two }| {n:three }| ]], - float_pos = { - [4] = { -1, 'NW', 2, 1, 0, false, 100, 1, 1, 0 }, - }, + float_pos = { [4] = { -1, 'NW', 2, 1, 0, false, 100, 1, 1, 0 } }, }) else screen:expect([[ @@ -1773,9 +1757,7 @@ describe('builtin popupmenu', function() 1info | {1:~ }|*2 ]], - float_pos = { - [4] = { -1, 'NW', 2, 1, 0, false, 100, 1, 5, 0 }, - }, + float_pos = { [4] = { -1, 'NW', 2, 1, 0, false, 100, 1, 5, 0 } }, }) else screen:expect([[ @@ -1831,9 +1813,7 @@ describe('builtin popupmenu', function() {n:aa6bb }{s: }| {n:aa7bb }{s: }| ]], - float_pos = { - [4] = { -1, 'NW', 2, 1, 0, false, 100, 1, 1, 0 }, - }, + float_pos = { [4] = { -1, 'NW', 2, 1, 0, false, 100, 1, 1, 0 } }, }) else screen:expect([[ @@ -1965,15 +1945,7 @@ describe('builtin popupmenu', function() {n:two }| {n:looooooooooooooong }| ]], - win_pos = { - [2] = { - height = 10, - startcol = 0, - startrow = 0, - width = 40, - win = 1000, - }, - }, + win_pos = { [2] = { height = 10, startcol = 0, startrow = 0, width = 40, win = 1000 } }, float_pos = { [5] = { -1, 'NW', 2, 1, 0, false, 100, 2, 1, 0 }, [4] = { 1001, 'NW', 1, 1, 19, false, 50, 1, 1, 19 }, @@ -1999,20 +1971,8 @@ describe('builtin popupmenu', function() }, }, win_viewport_margins = { - [2] = { - bottom = 0, - left = 0, - right = 0, - top = 0, - win = 1000, - }, - [4] = { - bottom = 0, - left = 0, - right = 0, - top = 0, - win = 1001, - }, + [2] = { bottom = 0, left = 0, right = 0, top = 0, win = 1000 }, + [4] = { bottom = 0, left = 0, right = 0, top = 0, win = 1001 }, }, }) else @@ -2045,15 +2005,7 @@ describe('builtin popupmenu', function() ## grid 5 {s:one }| ]], - win_pos = { - [2] = { - height = 10, - startcol = 0, - startrow = 0, - width = 40, - win = 1000, - }, - }, + win_pos = { [2] = { height = 10, startcol = 0, startrow = 0, width = 40, win = 1000 } }, float_pos = { [5] = { -1, 'NW', 2, 1, 0, false, 100, 2, 1, 0 }, [4] = { 1001, 'NW', 1, 1, 15, false, 50, 1, 1, 15 }, @@ -2079,20 +2031,8 @@ describe('builtin popupmenu', function() }, }, win_viewport_margins = { - [2] = { - bottom = 0, - left = 0, - right = 0, - top = 0, - win = 1000, - }, - [4] = { - bottom = 0, - left = 0, - right = 0, - top = 0, - win = 1001, - }, + [2] = { bottom = 0, left = 0, right = 0, top = 0, win = 1000 }, + [4] = { bottom = 0, left = 0, right = 0, top = 0, win = 1001 }, }, }) else @@ -2122,18 +2062,8 @@ describe('builtin popupmenu', function() ## grid 5 {n:one }| ]], - win_pos = { - [2] = { - height = 10, - startcol = 0, - startrow = 0, - width = 40, - win = 1000, - }, - }, - float_pos = { - [5] = { -1, 'NW', 2, 1, 0, false, 100, 1, 1, 0 }, - }, + win_pos = { [2] = { height = 10, startcol = 0, startrow = 0, width = 40, win = 1000 } }, + float_pos = { [5] = { -1, 'NW', 2, 1, 0, false, 100, 1, 1, 0 } }, win_viewport = { [2] = { win = 1000, @@ -2155,20 +2085,8 @@ describe('builtin popupmenu', function() }, }, win_viewport_margins = { - [2] = { - bottom = 0, - left = 0, - right = 0, - top = 0, - win = 1000, - }, - [4] = { - bottom = 0, - left = 0, - right = 0, - top = 0, - win = 1001, - }, + [2] = { bottom = 0, left = 0, right = 0, top = 0, win = 1000 }, + [4] = { bottom = 0, left = 0, right = 0, top = 0, win = 1001 }, }, }) else @@ -2202,15 +2120,7 @@ describe('builtin popupmenu', function() {n:two }| {s:looooooooooooooong }| ]], - win_pos = { - [2] = { - height = 10, - startcol = 0, - startrow = 0, - width = 40, - win = 1000, - }, - }, + win_pos = { [2] = { height = 10, startcol = 0, startrow = 0, width = 40, win = 1000 } }, float_pos = { [5] = { -1, 'NW', 2, 1, 0, false, 100, 2, 1, 0 }, [4] = { 1001, 'NW', 1, 1, 19, false, 50, 1, 1, 19 }, @@ -2236,20 +2146,8 @@ describe('builtin popupmenu', function() }, }, win_viewport_margins = { - [2] = { - bottom = 0, - left = 0, - right = 0, - top = 0, - win = 1000, - }, - [4] = { - bottom = 0, - left = 0, - right = 0, - top = 0, - win = 1001, - }, + [2] = { bottom = 0, left = 0, right = 0, top = 0, win = 1000 }, + [4] = { bottom = 0, left = 0, right = 0, top = 0, win = 1001 }, }, }) else @@ -2286,15 +2184,7 @@ describe('builtin popupmenu', function() {n: two }| {n: looooooooooooooong }| ]], - win_pos = { - [2] = { - height = 10, - startcol = 0, - startrow = 0, - width = 40, - win = 1000, - }, - }, + win_pos = { [2] = { height = 10, startcol = 0, startrow = 0, width = 40, win = 1000 } }, float_pos = { [5] = { -1, 'NW', 2, 1, 18, false, 100, 2, 1, 18 }, [4] = { 1001, 'NW', 1, 1, 13, false, 50, 1, 1, 13 }, @@ -2320,20 +2210,8 @@ describe('builtin popupmenu', function() }, }, win_viewport_margins = { - [2] = { - bottom = 0, - left = 0, - right = 0, - top = 0, - win = 1000, - }, - [4] = { - bottom = 0, - left = 0, - right = 0, - top = 0, - win = 1001, - }, + [2] = { bottom = 0, left = 0, right = 0, top = 0, win = 1000 }, + [4] = { bottom = 0, left = 0, right = 0, top = 0, win = 1001 }, }, }) else @@ -2374,15 +2252,7 @@ describe('builtin popupmenu', function() {n:two }| {n:looooooooooooooong }| ]], - win_pos = { - [2] = { - height = 10, - startcol = 0, - startrow = 0, - width = 40, - win = 1000, - }, - }, + win_pos = { [2] = { height = 10, startcol = 0, startrow = 0, width = 40, win = 1000 } }, float_pos = { [5] = { -1, 'NW', 2, 1, 0, false, 100, 2, 1, 0 }, [4] = { 1001, 'NW', 1, 1, 19, false, 50, 1, 1, 19 }, @@ -2408,20 +2278,8 @@ describe('builtin popupmenu', function() }, }, win_viewport_margins = { - [2] = { - bottom = 0, - left = 0, - right = 0, - top = 0, - win = 1000, - }, - [4] = { - bottom = 0, - left = 0, - right = 0, - top = 0, - win = 1001, - }, + [2] = { bottom = 0, left = 0, right = 0, top = 0, win = 1000 }, + [4] = { bottom = 0, left = 0, right = 0, top = 0, win = 1001 }, }, }) else @@ -2466,15 +2324,7 @@ describe('builtin popupmenu', function() {n:end }| {n:``` }| ]], - win_pos = { - [2] = { - height = 10, - startcol = 0, - startrow = 0, - width = 40, - win = 1000, - }, - }, + win_pos = { [2] = { height = 10, startcol = 0, startrow = 0, width = 40, win = 1000 } }, float_pos = { [5] = { 1001, 'NW', 1, 1, 19, false, 50, 1, 1, 19 }, [4] = { -1, 'NW', 2, 1, 0, false, 100, 2, 1, 0 }, @@ -2500,20 +2350,8 @@ describe('builtin popupmenu', function() }, }, win_viewport_margins = { - [2] = { - bottom = 0, - left = 0, - right = 0, - top = 0, - win = 1000, - }, - [5] = { - bottom = 0, - left = 0, - right = 0, - top = 0, - win = 1001, - }, + [2] = { bottom = 0, left = 0, right = 0, top = 0, win = 1000 }, + [5] = { bottom = 0, left = 0, right = 0, top = 0, win = 1001 }, }, }) else @@ -2599,9 +2437,7 @@ describe('builtin popupmenu', function() {n: aab }| {n: aac }| ]], - float_pos = { - [5] = { -1, 'NW', 4, 2, 3, false, 100, 1, 2, 3 }, - }, + float_pos = { [5] = { -1, 'NW', 4, 2, 3, false, 100, 1, 2, 3 } }, } else screen:expect([[ @@ -2641,9 +2477,7 @@ describe('builtin popupmenu', function() {n: aab }| {n: aac }| ]], - float_pos = { - [5] = { -1, 'NW', 2, 3, 1, false, 100, 1, 3, 13 }, - }, + float_pos = { [5] = { -1, 'NW', 2, 3, 1, false, 100, 1, 3, 13 } }, } else screen:expect([[ @@ -2685,9 +2519,7 @@ describe('builtin popupmenu', function() {n: aac }| {n: aaabcdef}| ]], - float_pos = { - [5] = { -1, 'NW', 2, 3, 11, false, 100, 1, 3, 23 }, - }, + float_pos = { [5] = { -1, 'NW', 2, 3, 11, false, 100, 1, 3, 23 } }, } else screen:expect([[ @@ -2730,9 +2562,7 @@ describe('builtin popupmenu', function() {n: aab }{s: }| {n: aac }{s: }| ]], - float_pos = { - [5] = { -1, 'NW', 2, 4, -1, false, 100, 1, 4, 11 }, - }, + float_pos = { [5] = { -1, 'NW', 2, 4, -1, false, 100, 1, 4, 11 } }, } else screen:expect([[ @@ -2852,9 +2682,7 @@ describe('builtin popupmenu', function() {n: laborum }{c: }| {s: Est }{c: }| ]], - float_pos = { - [5] = { -1, 'NW', 4, 1, 3, false, 100, 1, 1, 3 }, - }, + float_pos = { [5] = { -1, 'NW', 4, 1, 3, false, 100, 1, 1, 3 } }, }) else screen:expect([[ @@ -2914,9 +2742,7 @@ describe('builtin popupmenu', function() {n: laborum }{c: }| {s: Est }{c: }| ]], - float_pos = { - [5] = { -1, 'NW', 4, 1, 3, false, 100, 1, 1, 3 }, - }, + float_pos = { [5] = { -1, 'NW', 4, 1, 3, false, 100, 1, 1, 3 } }, }) else api.nvim_input_mouse('wheel', 'down', '', 0, 9, 40) @@ -2975,9 +2801,7 @@ describe('builtin popupmenu', function() {n: eu }| {s: est }| ]], - float_pos = { - [5] = { -1, 'NW', 4, 1, 3, false, 100, 1, 1, 3 }, - }, + float_pos = { [5] = { -1, 'NW', 4, 1, 3, false, 100, 1, 1, 3 } }, }) else screen:expect([[ @@ -3035,9 +2859,7 @@ describe('builtin popupmenu', function() {n: eu }| {s: est }| ]], - float_pos = { - [5] = { -1, 'NW', 4, 1, 3, false, 100, 1, 1, 3 }, - }, + float_pos = { [5] = { -1, 'NW', 4, 1, 3, false, 100, 1, 1, 3 } }, }) else api.nvim_input_mouse('wheel', 'up', '', 0, 9, 40) @@ -3088,9 +2910,7 @@ describe('builtin popupmenu', function() {n: esse }| {s: est }| ]], - float_pos = { - [5] = { -1, 'NW', 4, 1, 3, false, 100, 1, 1, 3 }, - }, + float_pos = { [5] = { -1, 'NW', 4, 1, 3, false, 100, 1, 1, 3 } }, }) else screen:expect([[ @@ -3140,9 +2960,7 @@ describe('builtin popupmenu', function() {n: esse }| {s: est }| ]], - float_pos = { - [5] = { -1, 'NW', 4, 1, 3, false, 100, 1, 1, 3 }, - }, + float_pos = { [5] = { -1, 'NW', 4, 1, 3, false, 100, 1, 1, 3 } }, }) else api.nvim_input_mouse('wheel', 'down', '', 0, 9, 40) @@ -3201,9 +3019,7 @@ describe('builtin popupmenu', function() {n: eu }| {s: est }| ]], - float_pos = { - [5] = { -1, 'NW', 4, 1, 3, false, 100, 1, 1, 3 }, - }, + float_pos = { [5] = { -1, 'NW', 4, 1, 3, false, 100, 1, 1, 3 } }, }) else screen:expect([[ @@ -3261,9 +3077,7 @@ describe('builtin popupmenu', function() {s: eu }| {n: est }| ]], - float_pos = { - [5] = { -1, 'NW', 4, 1, 3, false, 100, 1, 1, 3 }, - }, + float_pos = { [5] = { -1, 'NW', 4, 1, 3, false, 100, 1, 1, 3 } }, }) else screen:expect([[ @@ -3321,9 +3135,7 @@ describe('builtin popupmenu', function() {s: eu }| {n: est }| ]], - float_pos = { - [5] = { -1, 'NW', 4, 1, 3, false, 100, 1, 1, 3 }, - }, + float_pos = { [5] = { -1, 'NW', 4, 1, 3, false, 100, 1, 1, 3 } }, }) else api.nvim_input_mouse('wheel', 'down', '', 0, 9, 40) @@ -3381,9 +3193,7 @@ describe('builtin popupmenu', function() {n: eä }| {n: eö }| ]], - float_pos = { - [5] = { -1, 'NW', 4, 1, 2, false, 100, 1, 1, 2 }, - }, + float_pos = { [5] = { -1, 'NW', 4, 1, 2, false, 100, 1, 1, 2 } }, }) else screen:expect([[ @@ -3440,9 +3250,7 @@ describe('builtin popupmenu', function() {n: eä }| {n: eö }| ]], - float_pos = { - [5] = { -1, 'NW', 4, 1, 2, false, 100, 1, 1, 2 }, - }, + float_pos = { [5] = { -1, 'NW', 4, 1, 2, false, 100, 1, 1, 2 } }, }) else screen:expect([[ @@ -3499,9 +3307,7 @@ describe('builtin popupmenu', function() {n: eä }| {n: eö }| ]], - float_pos = { - [5] = { -1, 'NW', 4, 1, 2, false, 100, 1, 1, 2 }, - }, + float_pos = { [5] = { -1, 'NW', 4, 1, 2, false, 100, 1, 1, 2 } }, }) else screen:expect([[ @@ -3551,9 +3357,7 @@ describe('builtin popupmenu', function() {s: foo }| {n: bar }| ]], - float_pos = { - [5] = { -1, 'NW', 4, 1, 4, false, 100, 1, 1, 4 }, - }, + float_pos = { [5] = { -1, 'NW', 4, 1, 4, false, 100, 1, 1, 4 } }, }) else screen:expect([[ @@ -3643,9 +3447,7 @@ describe('builtin popupmenu', function() {n: text }| {n: thing }| ]], - float_pos = { - [4] = { -1, 'NW', 2, 1, 25, false, 100, 1, 1, 25 }, - }, + float_pos = { [4] = { -1, 'NW', 2, 1, 25, false, 100, 1, 1, 25 } }, }) else screen:expect([[ @@ -3678,9 +3480,7 @@ describe('builtin popupmenu', function() {n:text }| {s:thing }| ]], - float_pos = { - [4] = { -1, 'NW', 2, 2, 0, false, 100, 1, 2, 0 }, - }, + float_pos = { [4] = { -1, 'NW', 2, 2, 0, false, 100, 1, 2, 0 } }, }) else screen:expect([[ @@ -3714,9 +3514,7 @@ describe('builtin popupmenu', function() {s: text }| {n: thing }| ]], - float_pos = { - [4] = { -1, 'NW', 2, 1, 25, false, 100, 1, 1, 25 }, - }, + float_pos = { [4] = { -1, 'NW', 2, 1, 25, false, 100, 1, 1, 25 } }, }) else screen:expect([[ @@ -3749,9 +3547,7 @@ describe('builtin popupmenu', function() {s:text }| {n:thing }| ]], - float_pos = { - [4] = { -1, 'NW', 2, 2, 0, false, 100, 1, 2, 0 }, - }, + float_pos = { [4] = { -1, 'NW', 2, 2, 0, false, 100, 1, 2, 0 } }, }) else screen:expect([[ @@ -3784,9 +3580,7 @@ describe('builtin popupmenu', function() {s: text }| {n: thing }| ]], - float_pos = { - [4] = { -1, 'NW', 2, 1, 27, false, 100, 1, 1, 27 }, - }, + float_pos = { [4] = { -1, 'NW', 2, 1, 27, false, 100, 1, 1, 27 } }, }) else screen:expect([[ @@ -3819,9 +3613,7 @@ describe('builtin popupmenu', function() {s: text }| {n: thing }| ]], - float_pos = { - [4] = { -1, 'NW', 2, 2, 3, false, 100, 1, 2, 3 }, - }, + float_pos = { [4] = { -1, 'NW', 2, 2, 3, false, 100, 1, 2, 3 } }, }) else screen:expect([[ @@ -3856,9 +3648,7 @@ describe('builtin popupmenu', function() {s: text }| {n: thing }| ]], - float_pos = { - [4] = { -1, 'NW', 2, 2, 3, false, 100, 1, 2, 3 }, - }, + float_pos = { [4] = { -1, 'NW', 2, 2, 3, false, 100, 1, 2, 3 } }, }) else screen:expect([[ @@ -3888,9 +3678,7 @@ describe('builtin popupmenu', function() {s: text }| {n: thing }| ]], - float_pos = { - [4] = { -1, 'NW', 2, 2, 3, false, 100, 1, 2, 3 }, - }, + float_pos = { [4] = { -1, 'NW', 2, 2, 3, false, 100, 1, 2, 3 } }, }) else screen:expect([[ @@ -3919,9 +3707,7 @@ describe('builtin popupmenu', function() {s: text }| {n: thing }| ]], - float_pos = { - [4] = { -1, 'NW', 2, 2, 10, false, 100, 1, 2, 10 }, - }, + float_pos = { [4] = { -1, 'NW', 2, 2, 10, false, 100, 1, 2, 10 } }, }) else screen:expect([[ @@ -3960,9 +3746,7 @@ describe('builtin popupmenu', function() {n: text }| {n: thing }| ]], - float_pos = { - [4] = { -1, 'NW', 2, 1, 25, false, 100, 1, 1, 25 }, - }, + float_pos = { [4] = { -1, 'NW', 2, 1, 25, false, 100, 1, 1, 25 } }, }) else screen:expect([[ @@ -3996,9 +3780,7 @@ describe('builtin popupmenu', function() {n: text }| {n: thing }| ]], - float_pos = { - [4] = { -1, 'NW', 2, 3, 3, false, 100, 1, 3, 3 }, - }, + float_pos = { [4] = { -1, 'NW', 2, 3, 3, false, 100, 1, 3, 3 } }, }) else screen:expect([[ @@ -4058,9 +3840,7 @@ describe('builtin popupmenu', function() {n: txet }| {n: gniht }| ]], - float_pos = { - [4] = { -1, 'NW', 2, 1, 2, false, 100, 1, 1, 2 }, - }, + float_pos = { [4] = { -1, 'NW', 2, 1, 2, false, 100, 1, 1, 2 } }, }) else screen:expect([[ @@ -4092,9 +3872,7 @@ describe('builtin popupmenu', function() {n: txet }| {n: gniht }| ]], - float_pos = { - [4] = { -1, 'NW', 2, 1, 2, false, 100, 1, 1, 2 }, - }, + float_pos = { [4] = { -1, 'NW', 2, 1, 2, false, 100, 1, 1, 2 } }, }) else screen:expect([[ @@ -4176,9 +3954,7 @@ describe('builtin popupmenu', function() {n: undefine }| {n: unplace }| ]], - float_pos = { - [4] = { -1, 'SW', 1, 19, 5, false, 250, 2, 13, 5 }, - }, + float_pos = { [4] = { -1, 'SW', 1, 19, 5, false, 250, 2, 13, 5 } }, }) else screen:expect { @@ -4224,9 +4000,7 @@ describe('builtin popupmenu', function() {c: }{n: drow }| {s: }{n: eciohc }| ]], - float_pos = { - [5] = { -1, 'NW', 4, 1, -11, false, 100, 1, 1, 9 }, - }, + float_pos = { [5] = { -1, 'NW', 4, 1, -11, false, 100, 1, 1, 9 } }, } else screen:expect([[ @@ -4261,9 +4035,7 @@ describe('builtin popupmenu', function() {c: }{n: drow}| {s: }{n: eciohc}| ]], - float_pos = { - [5] = { -1, 'NW', 4, 2, 4, false, 100, 1, 2, 24 }, - }, + float_pos = { [5] = { -1, 'NW', 4, 2, 4, false, 100, 1, 2, 24 } }, } else screen:expect([[ @@ -4328,9 +4100,7 @@ describe('builtin popupmenu', function() {s:define }{c: }| {n:jump }{s: }| ]], - float_pos = { - [5] = { -1, 'SW', 1, 5, 0, false, 250, 2, 3, 0 }, - }, + float_pos = { [5] = { -1, 'SW', 1, 5, 0, false, 250, 2, 3, 0 } }, } else screen:expect([[ @@ -5207,9 +4977,7 @@ describe('builtin popupmenu', function() {n: undefine }| {n: unplace }| ]], - float_pos = { - [4] = { -1, 'SW', 1, 9, 5, false, 250, 2, 3, 5 }, - }, + float_pos = { [4] = { -1, 'SW', 1, 9, 5, false, 250, 2, 3, 5 } }, }) else screen:expect { @@ -5569,9 +5337,7 @@ describe('builtin popupmenu', function() {n: word }{c: }| {n: choice}{s: }| ]], - float_pos = { - [4] = { -1, 'NW', 2, 1, 24, false, 100, 1, 1, 24 }, - }, + float_pos = { [4] = { -1, 'NW', 2, 1, 24, false, 100, 1, 1, 24 } }, } else screen:expect([[ @@ -5608,9 +5374,7 @@ describe('builtin popupmenu', function() {n: text }| {n: thing }| ]], - float_pos = { - [4] = { -1, 'NW', 2, 1, 25, false, 100, 1, 1, 25 }, - }, + float_pos = { [4] = { -1, 'NW', 2, 1, 25, false, 100, 1, 1, 25 } }, } else screen:expect([[ @@ -7709,9 +7473,7 @@ describe('builtin popupmenu', function() {n: Select Block }| {n: Select All }| ]], - float_pos = { - [4] = { -1, 'NW', 2, 1, 33, false, 250, 2, 1, 33 }, - }, + float_pos = { [4] = { -1, 'NW', 2, 1, 33, false, 250, 2, 1, 33 } }, }) else api.nvim_input_mouse('right', 'press', '', 0, 0, 45 - 1) @@ -7758,9 +7520,7 @@ describe('builtin popupmenu', function() {n: kcolB tceleS }| {n: llA tceleS }| ]], - float_pos = { - [4] = { -1, 'NW', 2, 1, 0, false, 250, 2, 1, 0 }, - }, + float_pos = { [4] = { -1, 'NW', 2, 1, 0, false, 250, 2, 1, 0 } }, }) else api.nvim_input_mouse('right', 'press', '', 0, 0, 50 - 45)