Skip to content

Commit cdaf669

Browse files
Copilotsand4rt
andauthored
test: cover WinNew side-window reopen regression
Co-authored-by: sand4rt <17591696+sand4rt@users.noreply.github.com>
1 parent 983a553 commit cdaf669

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

‎tests/test_splits.lua‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,21 @@ describe("vsplit", function()
4949
})
5050
end)
5151

52+
it("reopening zen side buffers after a split keeps them open", function()
53+
child.cmd("edit test.lua")
54+
child.cmd("vsplit")
55+
child.cmd("q")
56+
57+
Helpers.expect.layout(child, {
58+
type = "row",
59+
children = {
60+
{ type = "leaf", filetype = "zen-left", buftype = "nofile", width = 46, height = 50 },
61+
{ type = "leaf", filetype = "lua", buftype = "", width = 146, height = 50 },
62+
{ type = "leaf", filetype = "zen-right", buftype = "nofile", width = 46, height = 50 },
63+
},
64+
})
65+
end)
66+
5267
it("closing does not reopen zen side buffers when below minimum width", function()
5368
child.cmd("edit test.lua")
5469
child.cmd("vsplit test2.lua")

0 commit comments

Comments
 (0)