aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/float_spec.lua
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2024-01-16 13:26:21 +0000
committerLewis Russell <me@lewisr.dev>2024-01-16 19:11:49 +0000
commit8f02ae82e203920b472d17e75a61763f3a409a7b (patch)
tree4e6379218c7d53d1ba512a2464ec0237365a7bbb /test/functional/ui/float_spec.lua
parent91dc04a5e12a3d0c5be56768ded5971bc80e6f8e (diff)
downloadrneovim-8f02ae82e203920b472d17e75a61763f3a409a7b.tar.gz
rneovim-8f02ae82e203920b472d17e75a61763f3a409a7b.tar.bz2
rneovim-8f02ae82e203920b472d17e75a61763f3a409a7b.zip
test: use integers for API Buffer/Window/Tabpage EXT types
Diffstat (limited to 'test/functional/ui/float_spec.lua')
-rw-r--r--test/functional/ui/float_spec.lua762
1 files changed, 379 insertions, 383 deletions
diff --git a/test/functional/ui/float_spec.lua b/test/functional/ui/float_spec.lua
index d08e346fc2..b05e7aceda 100644
--- a/test/functional/ui/float_spec.lua
+++ b/test/functional/ui/float_spec.lua
@@ -47,8 +47,8 @@ describe('float window', function()
local win = api.nvim_open_win(buf, false, {relative='win', width=16, height=1, row=0, col=10})
local line = fn.win_execute(win, 'echo getline(1)')
eq('\nthe floatwin', line)
- eq('\n1', fn.win_execute(win, 'echo line(".",'..win.id..')'))
- eq('\n3', fn.win_execute(win, 'echo line("$",'..win.id..')'))
+ eq('\n1', fn.win_execute(win, 'echo line(".",'..win..')'))
+ eq('\n3', fn.win_execute(win, 'echo line("$",'..win..')'))
eq('\n0', fn.win_execute(win, 'echo line("$", 123456)'))
fn.win_execute(win, 'bwipe!')
end)
@@ -480,7 +480,7 @@ describe('float window', function()
it('no crash with bufpos and non-existent window', function()
command('new')
- local closed_win = api.nvim_get_current_win().id
+ local closed_win = api.nvim_get_current_win()
command('close')
local buf = api.nvim_create_buf(false,false)
api.nvim_open_win(buf, true, {relative='win', win=closed_win, width=1, height=1, bufpos={0,0}})
@@ -490,7 +490,7 @@ describe('float window', function()
it("no segfault when setting minimal style after clearing local 'fillchars' #19510", function()
local float_opts = {relative = 'editor', row = 1, col = 1, width = 1, height = 1}
local float_win = api.nvim_open_win(0, true, float_opts)
- api.nvim_set_option_value('fillchars', NIL, {win=float_win.id})
+ api.nvim_set_option_value('fillchars', NIL, {win=float_win})
float_opts.style = 'minimal'
api.nvim_win_set_config(float_win, float_opts)
assert_alive()
@@ -519,7 +519,7 @@ describe('float window', function()
api.nvim_set_option_value('splitkeep', 'screen', {})
local float_opts = {relative = 'editor', row = 1, col = 1, width = 10, height = 10}
local float_win = api.nvim_open_win(0, true, float_opts)
- eq(5, api.nvim_get_option_value('scroll', {win=float_win.id}))
+ eq(5, api.nvim_get_option_value('scroll', {win=float_win}))
end)
it(':unhide works when there are floating windows', function()
@@ -548,8 +548,8 @@ describe('float window', function()
local old_buf, old_win
before_each(function()
insert('foo')
- old_buf = curbuf().id
- old_win = curwin().id
+ old_buf = curbuf()
+ old_win = curwin()
end)
describe('closing the last non-floating window gives E444', function()
before_each(function()
@@ -569,10 +569,10 @@ describe('float window', function()
describe('leaves one window with an empty buffer when there is only one buffer', function()
local same_buf_float
before_each(function()
- same_buf_float = api.nvim_open_win(old_buf, false, float_opts).id
+ same_buf_float = api.nvim_open_win(old_buf, false, float_opts)
end)
after_each(function()
- eq(old_win, curwin().id)
+ eq(old_win, curwin())
expect('')
eq(1, #api.nvim_list_wins())
end)
@@ -591,20 +591,20 @@ describe('float window', function()
describe('closes other windows with that buffer when there are other buffers', function()
local same_buf_float, other_buf, other_buf_float
before_each(function()
- same_buf_float = api.nvim_open_win(old_buf, false, float_opts).id
- other_buf = api.nvim_create_buf(true, false).id
- other_buf_float = api.nvim_open_win(other_buf, true, float_opts).id
+ same_buf_float = api.nvim_open_win(old_buf, false, float_opts)
+ other_buf = api.nvim_create_buf(true, false)
+ other_buf_float = api.nvim_open_win(other_buf, true, float_opts)
insert('bar')
api.nvim_set_current_win(old_win)
end)
after_each(function()
- eq(other_buf, curbuf().id)
+ eq(other_buf, curbuf())
expect('bar')
eq(2, #api.nvim_list_wins())
end)
it('if called from non-floating window', function()
api.nvim_buf_delete(old_buf, {force = true})
- eq(old_win, curwin().id)
+ eq(old_win, curwin())
end)
it('if called from floating window with the same buffer', function()
api.nvim_set_current_win(same_buf_float)
@@ -613,7 +613,7 @@ describe('float window', function()
api.nvim_buf_delete(old_buf, {force = true})
eq(same_buf_float, eval('g:win_leave'))
eq(old_win, eval('g:win_enter'))
- eq(old_win, curwin().id)
+ eq(old_win, curwin())
end)
-- TODO: this case is too hard to deal with
pending('if called from floating window with another buffer', function()
@@ -624,9 +624,9 @@ describe('float window', function()
describe('creates an empty buffer when there is only one listed buffer', function()
local same_buf_float, unlisted_buf_float
before_each(function()
- same_buf_float = api.nvim_open_win(old_buf, false, float_opts).id
- local unlisted_buf = api.nvim_create_buf(true, false).id
- unlisted_buf_float = api.nvim_open_win(unlisted_buf, true, float_opts).id
+ same_buf_float = api.nvim_open_win(old_buf, false, float_opts)
+ local unlisted_buf = api.nvim_create_buf(true, false)
+ unlisted_buf_float = api.nvim_open_win(unlisted_buf, true, float_opts)
insert('unlisted')
command('set nobuflisted')
api.nvim_set_current_win(old_win)
@@ -637,7 +637,7 @@ describe('float window', function()
end)
it('if called from non-floating window', function()
api.nvim_buf_delete(old_buf, {force = true})
- eq(old_win, curwin().id)
+ eq(old_win, curwin())
end)
it('if called from floating window with the same buffer', function()
api.nvim_set_current_win(same_buf_float)
@@ -646,7 +646,7 @@ describe('float window', function()
api.nvim_buf_delete(old_buf, {force = true})
eq(same_buf_float, eval('g:win_leave'))
eq(old_win, eval('g:win_enter'))
- eq(old_win, curwin().id)
+ eq(old_win, curwin())
end)
-- TODO: this case is too hard to deal with
pending('if called from floating window with an unlisted buffer', function()
@@ -663,7 +663,7 @@ describe('float window', function()
insert('unlisted')
command('set nobuflisted')
api.nvim_set_current_win(old_win)
- same_buf_float = api.nvim_open_win(old_buf, false, float_opts).id
+ same_buf_float = api.nvim_open_win(old_buf, false, float_opts)
end)
after_each(function()
expect('')
@@ -671,12 +671,12 @@ describe('float window', function()
end)
it('if called from non-floating window with the deleted buffer', function()
api.nvim_buf_delete(old_buf, {force = true})
- eq(old_win, curwin().id)
+ eq(old_win, curwin())
end)
it('if called from floating window with the deleted buffer', function()
api.nvim_set_current_win(same_buf_float)
api.nvim_buf_delete(old_buf, {force = true})
- eq(same_buf_float, curwin().id)
+ eq(same_buf_float, curwin())
end)
end)
end)
@@ -688,17 +688,17 @@ describe('float window', function()
before_each(function()
insert('unlisted')
command('set nobuflisted')
- unlisted_buf = curbuf().id
+ unlisted_buf = curbuf()
command('tabnew')
insert('foo')
- old_buf = curbuf().id
- old_win = curwin().id
+ old_buf = curbuf()
+ old_win = curwin()
end)
describe('without splits, deleting the last listed buffer creates an empty buffer', function()
local same_buf_float
before_each(function()
api.nvim_set_current_win(old_win)
- same_buf_float = api.nvim_open_win(old_buf, false, float_opts).id
+ same_buf_float = api.nvim_open_win(old_buf, false, float_opts)
end)
after_each(function()
expect('')
@@ -707,7 +707,7 @@ describe('float window', function()
end)
it('if called from non-floating window', function()
api.nvim_buf_delete(old_buf, {force = true})
- eq(old_win, curwin().id)
+ eq(old_win, curwin())
end)
it('if called from non-floating window in another tabpage', function()
command('tab split')
@@ -721,7 +721,7 @@ describe('float window', function()
api.nvim_buf_delete(old_buf, {force = true})
eq(same_buf_float, eval('g:win_leave'))
eq(old_win, eval('g:win_enter'))
- eq(old_win, curwin().id)
+ eq(old_win, curwin())
end)
end)
describe('with splits, deleting the last listed buffer creates an empty buffer', function()
@@ -730,7 +730,7 @@ describe('float window', function()
command('botright vsplit')
api.nvim_set_current_buf(unlisted_buf)
api.nvim_set_current_win(old_win)
- same_buf_float = api.nvim_open_win(old_buf, false, float_opts).id
+ same_buf_float = api.nvim_open_win(old_buf, false, float_opts)
end)
after_each(function()
expect('')
@@ -739,12 +739,12 @@ describe('float window', function()
end)
it('if called from non-floating window with the deleted buffer', function()
api.nvim_buf_delete(old_buf, {force = true})
- eq(old_win, curwin().id)
+ eq(old_win, curwin())
end)
it('if called from floating window with the deleted buffer', function()
api.nvim_set_current_win(same_buf_float)
api.nvim_buf_delete(old_buf, {force = true})
- eq(same_buf_float, curwin().id)
+ eq(same_buf_float, curwin())
end)
end)
end)
@@ -753,20 +753,20 @@ describe('float window', function()
local float_opts = {relative = 'editor', row = 1, col = 1, width = 1, height = 1}
local old_tabpage, old_buf, old_win
before_each(function()
- old_tabpage = curtab().id
+ old_tabpage = curtab()
insert('oldtab')
command('tabnew')
- old_buf = curbuf().id
- old_win = curwin().id
+ old_buf = curbuf()
+ old_win = curwin()
end)
describe('closing the last non-floating window', function()
describe('closes the tabpage when all floating windows are closeable', function()
local same_buf_float
before_each(function()
- same_buf_float = api.nvim_open_win(old_buf, false, float_opts).id
+ same_buf_float = api.nvim_open_win(old_buf, false, float_opts)
end)
after_each(function()
- eq(old_tabpage, curtab().id)
+ eq(old_tabpage, curtab())
expect('oldtab')
eq(1, #api.nvim_list_tabpages())
end)
@@ -782,8 +782,8 @@ describe('float window', function()
local other_buf_float
before_each(function()
command('set nohidden')
- local other_buf = api.nvim_create_buf(true, false).id
- other_buf_float = api.nvim_open_win(other_buf, true, float_opts).id
+ local other_buf = api.nvim_create_buf(true, false)
+ other_buf_float = api.nvim_open_win(other_buf, true, float_opts)
insert('foo')
api.nvim_set_current_win(old_win)
end)
@@ -802,13 +802,13 @@ describe('float window', function()
describe('closes the tabpage when all floating windows are closeable', function()
local same_buf_float, other_buf, other_buf_float
before_each(function()
- same_buf_float = api.nvim_open_win(old_buf, false, float_opts).id
- other_buf = api.nvim_create_buf(true, false).id
- other_buf_float = api.nvim_open_win(other_buf, true, float_opts).id
+ same_buf_float = api.nvim_open_win(old_buf, false, float_opts)
+ other_buf = api.nvim_create_buf(true, false)
+ other_buf_float = api.nvim_open_win(other_buf, true, float_opts)
api.nvim_set_current_win(old_win)
end)
after_each(function()
- eq(old_tabpage, curtab().id)
+ eq(old_tabpage, curtab())
expect('oldtab')
eq(1, #api.nvim_list_tabpages())
end)
@@ -872,7 +872,7 @@ describe('float window', 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]={{id=1001}, 'NW', 1, 2, 5, true},
+ [4]={1001, 'NW', 1, 2, 5, true},
}
if multigrid then
@@ -972,7 +972,7 @@ describe('float window', function()
{1: }|
{2:~ }|
]], float_pos={
- [5] = {{id = 1002}, "NW", 4, 2, 10, true};
+ [5] = {1002, "NW", 4, 2, 10, true};
}}
else
screen:expect([[
@@ -1013,7 +1013,7 @@ describe('float window', 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]={{id=1001}, 'NW', 1, 2, 5, true},
+ [4]={1001, 'NW', 1, 2, 5, true},
}
if multigrid then
@@ -1125,7 +1125,7 @@ describe('float window', function()
{18: 2 }{15:y }|
{18: 3 }{15: }|
{16:~ }|
- ]], float_pos={[4] = {{id = 1001}, "NW", 1, 4, 10, true}}}
+ ]], float_pos={[4] = {1001, "NW", 1, 4, 10, true}}}
else
screen:expect([[
{14: 1 }^x |
@@ -1155,7 +1155,7 @@ describe('float window', function()
## grid 4
{18: 1 }{15: }|
{16:~ }|*3
- ]], float_pos={[4] = {{id = 1001}, "NW", 1, 4, 10, true}}}
+ ]], float_pos={[4] = {1001, "NW", 1, 4, 10, true}}}
else
screen:expect([[
{14: 1 }^x |
@@ -1192,7 +1192,7 @@ describe('float window', function()
{15:x }|
{15:y }|
{15: }|*2
- ]], float_pos={[4] = {{id = 1001}, "NW", 1, 4, 10, true}}}
+ ]], float_pos={[4] = {1001, "NW", 1, 4, 10, true}}}
else
screen:expect{grid=[[
{19: }{20: 1 }{22:^x}{21: }|
@@ -1224,7 +1224,7 @@ describe('float window', function()
{19: }{15:y }|
{19: }{15: }|
{15: }|
- ]], float_pos={[4] = {{id = 1001}, "NW", 1, 4, 10, true}}}
+ ]], float_pos={[4] = {1001, "NW", 1, 4, 10, true}}}
else
screen:expect([[
@@ -1255,7 +1255,7 @@ describe('float window', function()
|
## grid 4
{15: }|*4
- ]], float_pos={[4] = {{id = 1001}, "NW", 1, 4, 10, true}}}
+ ]], float_pos={[4] = {1001, "NW", 1, 4, 10, true}}}
else
screen:expect([[
{19: }{20: 1 }{22:^x}{21: }|
@@ -1292,7 +1292,7 @@ describe('float window', function()
{15:x }|
{15:y }|
{15: }|*2
- ]], float_pos={[4] = {{id = 1001}, "NW", 1, 4, 10, true}}}
+ ]], float_pos={[4] = {1001, "NW", 1, 4, 10, true}}}
else
screen:expect{grid=[[
{19: }{20: 1 }{22:^x}{21: }|
@@ -1324,7 +1324,7 @@ describe('float window', function()
{19: }{15:y }|
{19: }{15: }|
{15: }|
- ]], float_pos={[4] = {{id = 1001}, "NW", 1, 4, 10, true}}}
+ ]], float_pos={[4] = {1001, "NW", 1, 4, 10, true}}}
else
screen:expect([[
@@ -1355,7 +1355,7 @@ describe('float window', function()
|
## grid 4
{15: }|*4
- ]], float_pos={[4] = {{id = 1001}, "NW", 1, 4, 10, true}}}
+ ]], float_pos={[4] = {1001, "NW", 1, 4, 10, true}}}
else
screen:expect([[
{19: }{20: 1 }{22:^x}{21: }|
@@ -1393,7 +1393,7 @@ describe('float window', function()
{15:x }|
{15:y }|
{15: }|*2
- ]], float_pos={[4] = {{id = 1001}, "NW", 1, 4, 10, true}}}
+ ]], float_pos={[4] = {1001, "NW", 1, 4, 10, true}}}
else
screen:expect{grid=[[
{20:1}{19: }{20: }{22:^x}{21: }|
@@ -1428,10 +1428,10 @@ describe('float window', function()
{5:║}{1: BORDAA }{5:║}|
{5:╚═════════╝}|
]], float_pos={
- [4] = { { id = 1001 }, "NW", 1, 2, 5, true }
+ [4] = { 1001, "NW", 1, 2, 5, true }
}, win_viewport={
- [2] = {win = {id = 1000}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0};
- [4] = {win = {id = 1001}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 2, sum_scroll_delta = 0};
+ [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};
}}
else
screen:expect{grid=[[
@@ -1462,10 +1462,10 @@ describe('float window', function()
{5:│}{1: BORDAA }{5:│}|
{5:└─────────┘}|
]], float_pos={
- [4] = { { id = 1001 }, "NW", 1, 2, 5, true }
+ [4] = { 1001, "NW", 1, 2, 5, true }
}, win_viewport={
- [2] = {win = {id = 1000}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0};
- [4] = {win = {id = 1001}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 2, sum_scroll_delta = 0};
+ [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};
}}
else
screen:expect{grid=[[
@@ -1496,10 +1496,10 @@ describe('float window', function()
{5:│}{1: BORDAA }{5:│}|
{5:╰─────────╯}|
]], float_pos={
- [4] = { { id = 1001 }, "NW", 1, 2, 5, true }
+ [4] = { 1001, "NW", 1, 2, 5, true }
}, win_viewport={
- [2] = {win = {id = 1000}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0};
- [4] = {win = {id = 1001}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 2, sum_scroll_delta = 0};
+ [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};
}}
else
screen:expect{grid=[[
@@ -1530,10 +1530,10 @@ describe('float window', function()
{5: }{1: BORDAA }{5: }|
{5: }|
]], float_pos={
- [4] = { { id = 1001 }, "NW", 1, 2, 5, true }
+ [4] = { 1001, "NW", 1, 2, 5, true }
}, win_viewport={
- [2] = {win = {id = 1000}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0};
- [4] = {win = {id = 1001}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 2, sum_scroll_delta = 0};
+ [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};
}}
else
screen:expect{grid=[[
@@ -1565,10 +1565,10 @@ describe('float window', function()
{17:n̈̊}{1: BORDAA }{17:n̈̊}|
{5:\}{7:ååååååååå}{5:x}|
]], float_pos={
- [4] = { { id = 1001 }, "NW", 1, 2, 5, true }
+ [4] = { 1001, "NW", 1, 2, 5, true }
}, win_viewport={
- [2] = {win = {id = 1000}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0};
- [4] = {win = {id = 1001}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 2, sum_scroll_delta = 0};
+ [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};
}}
else
screen:expect{grid=[[
@@ -1597,10 +1597,10 @@ describe('float window', function()
{1: halloj! }|
{1: BORDAA }|
]], float_pos={
- [4] = { { id = 1001 }, "NW", 1, 2, 5, true }
+ [4] = { 1001, "NW", 1, 2, 5, true }
}, win_viewport={
- [2] = {win = {id = 1000}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0};
- [4] = {win = {id = 1001}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 2, sum_scroll_delta = 0};
+ [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};
}}
else
screen:expect{grid=[[
@@ -1628,10 +1628,10 @@ describe('float window', function()
{5:<}{1: halloj! }{5:>}|
{5:<}{1: BORDAA }{5:>}|
]], float_pos={
- [4] = { { id = 1001 }, "NW", 1, 2, 5, true }
+ [4] = { 1001, "NW", 1, 2, 5, true }
}, win_viewport={
- [2] = {win = {id = 1000}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0};
- [4] = {win = {id = 1001}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 2, sum_scroll_delta = 0};
+ [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};
}}
else
screen:expect{grid=[[
@@ -1661,10 +1661,10 @@ describe('float window', function()
{1: BORDAA }|
{5:---------}|
]], float_pos={
- [4] = { { id = 1001 }, "NW", 1, 2, 5, true }
+ [4] = { 1001, "NW", 1, 2, 5, true }
}, win_viewport={
- [2] = {win = {id = 1000}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0};
- [4] = {win = {id = 1001}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 2, sum_scroll_delta = 0};
+ [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};
}}
else
screen:expect{grid=[[
@@ -1706,10 +1706,10 @@ describe('float window', function()
{1: BORDAA }{26: }|
{25: }{26: }|
]], float_pos={
- [4] = { { id = 1001 }, "NW", 1, 2, 5, true }
+ [4] = { 1001, "NW", 1, 2, 5, true }
}, win_viewport={
- [2] = {win = {id = 1000}, topline = 0, botline = 6, curline = 5, curcol = 0, linecount = 6, sum_scroll_delta = 0};
- [4] = {win = {id = 1001}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 2, sum_scroll_delta = 0};
+ [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};
}}
else
screen:expect{grid=[[
@@ -1817,10 +1817,10 @@ describe('float window', function()
{5:║}{1: BORDAA }{5:║}|
{5:╚═════════╝}|
]], float_pos={
- [4] = { { id = 1001 }, "NW", 1, 2, 5, true }
+ [4] = { 1001, "NW", 1, 2, 5, true }
}, win_viewport={
- [2] = {win = {id = 1000}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0};
- [4] = {win = {id = 1001}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 2, sum_scroll_delta = 0};
+ [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};
}}
else
screen:expect{grid=[[
@@ -1863,10 +1863,10 @@ describe('float window', function()
{5:║}{1: BORDAA }{5:║}|
{5:╚═════════╝}|
]], float_pos={
- [4] = { { id = 1001 }, "NW", 1, 2, 5, true }
+ [4] = { 1001, "NW", 1, 2, 5, true }
}, win_viewport={
- [2] = {win = {id = 1000}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0};
- [4] = {win = {id = 1001}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 2, sum_scroll_delta = 0};
+ [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};
}}
else
screen:expect{grid=[[
@@ -1897,10 +1897,10 @@ describe('float window', function()
{5:║}{1: BORDAA }{5:║}|
{5:╚═════════╝}|
]], float_pos={
- [4] = { { id = 1001 }, "NW", 1, 2, 5, true }
+ [4] = { 1001, "NW", 1, 2, 5, true }
}, win_viewport={
- [2] = {win = {id = 1000}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0};
- [4] = {win = {id = 1001}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 2, sum_scroll_delta = 0};
+ [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};
}}
else
screen:expect{grid=[[
@@ -1931,10 +1931,10 @@ describe('float window', function()
{5:║}{1: BORDAA }{5:║}|
{5:╚═════════╝}|
]], float_pos={
- [4] = { { id = 1001 }, "NW", 1, 2, 5, true }
+ [4] = { 1001, "NW", 1, 2, 5, true }
}, win_viewport={
- [2] = {win = {id = 1000}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0};
- [4] = {win = {id = 1001}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 2, sum_scroll_delta = 0};
+ [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};
}}
else
screen:expect{grid=[[
@@ -1965,10 +1965,10 @@ describe('float window', function()
{5:║}{1: BORDAA }{5:║}|
{5:╚═════════╝}|
]], float_pos={
- [4] = { { id = 1001 }, "NW", 1, 2, 5, true }
+ [4] = { 1001, "NW", 1, 2, 5, true }
}, win_viewport={
- [2] = {win = {id = 1000}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0};
- [4] = {win = {id = 1001}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 2, sum_scroll_delta = 0};
+ [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};
}}
else
screen:expect{grid=[[
@@ -2008,10 +2008,10 @@ describe('float window', function()
{5:║}{1: BORDAA }{5:║}|
{5:╚}{11:Left}{5:═════╝}|
]], float_pos={
- [4] = { { id = 1001 }, "NW", 1, 2, 5, true }
+ [4] = { 1001, "NW", 1, 2, 5, true }
}, win_viewport={
- [2] = {win = {id = 1000}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0};
- [4] = {win = {id = 1001}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 2, sum_scroll_delta = 0};
+ [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};
}}
else
screen:expect{grid=[[
@@ -2042,10 +2042,10 @@ describe('float window', function()
{5:║}{1: BORDAA }{5:║}|
{5:╚═}{11:Center}{5:══╝}|
]], float_pos={
- [4] = { { id = 1001 }, "NW", 1, 2, 5, true }
+ [4] = { 1001, "NW", 1, 2, 5, true }
}, win_viewport={
- [2] = {win = {id = 1000}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0};
- [4] = {win = {id = 1001}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 2, sum_scroll_delta = 0};
+ [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};
}}
else
screen:expect{grid=[[
@@ -2076,10 +2076,10 @@ describe('float window', function()
{5:║}{1: BORDAA }{5:║}|
{5:╚════}{11:Right}{5:╝}|
]], float_pos={
- [4] = { { id = 1001 }, "NW", 1, 2, 5, true }
+ [4] = { 1001, "NW", 1, 2, 5, true }
}, win_viewport={
- [2] = {win = {id = 1000}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0};
- [4] = {win = {id = 1001}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 2, sum_scroll_delta = 0};
+ [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};
}}
else
screen:expect{grid=[[
@@ -2110,10 +2110,10 @@ describe('float window', function()
{5:║}{1: BORDAA }{5:║}|
{5:╚═════}🦄BB{5:╝}|
]], float_pos={
- [4] = { { id = 1001 }, "NW", 1, 2, 5, true }
+ [4] = { 1001, "NW", 1, 2, 5, true }
}, win_viewport={
- [2] = {win = {id = 1000}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0};
- [4] = {win = {id = 1001}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 2, sum_scroll_delta = 0};
+ [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};
}}
else
screen:expect{grid=[[
@@ -2153,10 +2153,10 @@ describe('float window', function()
{5:║}{1: BORDAA }{5:║}|
{5:╚════}{11:Right}{5:╝}|
]], float_pos={
- [4] = { { id = 1001 }, "NW", 1, 2, 5, true }
+ [4] = { 1001, "NW", 1, 2, 5, true }
}, win_viewport={
- [2] = {win = {id = 1000}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0};
- [4] = {win = {id = 1001}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 2, sum_scroll_delta = 0};
+ [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};
}}
else
screen:expect{grid=[[
@@ -2187,10 +2187,10 @@ describe('float window', function()
{5:║}{1: BORDAA }{5:║}|
{5:╚═}{11:Center}{5:══╝}|
]], float_pos={
- [4] = { { id = 1001 }, "NW", 1, 2, 5, true }
+ [4] = { 1001, "NW", 1, 2, 5, true }
}, win_viewport={
- [2] = {win = {id = 1000}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0};
- [4] = {win = {id = 1001}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 2, sum_scroll_delta = 0};
+ [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};
}}
else
screen:expect{grid=[[
@@ -2221,10 +2221,10 @@ describe('float window', function()
{5:║}{1: BORDAA }{5:║}|
{5:╚}{11:Left}{5:═════╝}|
]], float_pos={
- [4] = { { id = 1001 }, "NW", 1, 2, 5, true }
+ [4] = { 1001, "NW", 1, 2, 5, true }
}, win_viewport={
- [2] = {win = {id = 1000}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0};
- [4] = {win = {id = 1001}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 2, sum_scroll_delta = 0};
+ [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};
}}
else
screen:expect{grid=[[
@@ -2260,10 +2260,10 @@ describe('float window', function()
{5:║}{1: BORDAA }{5:║}|
{5:╚═════}🦄{7:BB}{5:╝}|
]], float_pos={
- [4] = { { id = 1001 }, "NW", 1, 2, 5, true }
+ [4] = { 1001, "NW", 1, 2, 5, true }
}, win_viewport={
- [2] = {win = {id = 1000}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0};
- [4] = {win = {id = 1001}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 2, sum_scroll_delta = 0};
+ [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};
}}
else
screen:expect{grid=[[
@@ -2297,10 +2297,10 @@ describe('float window', function()
{5:│}{2:~ }{5:│}|*6
{5:└────────────────────────────────────────┘}|
]], float_pos={
- [4] = { { id = 1001 }, "NW", 1, 0, 0, true, 201 }
+ [4] = { 1001, "NW", 1, 0, 0, true, 201 }
}, win_viewport={
- [2] = {win = {id = 1000}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0};
- [4] = {win = {id = 1001}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0};
+ [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};
}}
else
screen:expect{grid=[[
@@ -2337,10 +2337,10 @@ describe('float window', function()
{5:║}{1:^ }{5:║}|
{5:╚═════════╝}|
]], float_pos={
- [4] = { { id = 1001 }, "NW", 1, 0, 5, true };
+ [4] = { 1001, "NW", 1, 0, 5, true };
}, win_viewport={
- [2] = {win = {id = 1000}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0};
- [4] = {win = {id = 1001}, topline = 0, botline = 3, curline = 2, curcol = 0, linecount = 3, sum_scroll_delta = 0};
+ [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};
}}
else
screen:expect{grid=[[
@@ -2377,11 +2377,11 @@ describe('float window', function()
{1: abb }|
{13: acc }|
]], float_pos={
- [4] = { { id = 1001 }, "NW", 1, 0, 5, true, 50 };
- [5] = { { id = -1 }, "NW", 4, 4, 0, false, 100 };
+ [4] = { 1001, "NW", 1, 0, 5, true, 50 };
+ [5] = { -1, "NW", 4, 4, 0, false, 100 };
}, win_viewport={
- [2] = {win = {id = 1000}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount=1, sum_scroll_delta = 0};
- [4] = {win = {id = 1001}, topline = 0, botline = 3, curline = 2, curcol = 3, linecount=3, sum_scroll_delta = 0};
+ [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 = 3, linecount=3, sum_scroll_delta = 0};
}}
else
screen:expect{grid=[[
@@ -2416,10 +2416,10 @@ describe('float window', function()
{5:║}{1:ac^c }{5:║}|
{5:╚═════════╝}|
]], float_pos={
- [4] = { { id = 1001 }, "NW", 1, 0, 5, true };
+ [4] = { 1001, "NW", 1, 0, 5, true };
}, win_viewport={
- [2] = {win = {id = 1000}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0};
- [4] = {win = {id = 1001}, topline = 0, botline = 3, curline = 2, curcol = 2, linecount = 3, sum_scroll_delta = 0};
+ [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};
}}
else
screen:expect{grid=[[
@@ -2460,11 +2460,11 @@ describe('float window', function()
{1: bar }|
{1: baz }|
]], float_pos={
- [4] = { { id = 1001 }, "NW", 1, 0, 5, true };
- [5] = { { id = -1 }, "NW", 4, 4, 2, false, 250 };
+ [4] = { 1001, "NW", 1, 0, 5, true };
+ [5] = { -1, "NW", 4, 4, 2, false, 250 };
}, win_viewport={
- [2] = {win = {id = 1000}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0};
- [4] = {win = {id = 1001}, topline = 0, botline = 3, curline = 2, curcol = 2, linecount = 3, sum_scroll_delta = 0};
+ [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};
}}
else
screen:expect{grid=[[
@@ -2504,10 +2504,10 @@ describe('float window',