Only check if sibling is locked in the split direction
If the sibling is not locked in the direction of the split, it should fill the space.
This commit is contained in:
parent
1e8031a0e8
commit
fb955e4e12
|
@ -143,7 +143,7 @@ function Node:remove_view(root, view)
|
||||||
local is_a = (parent.a == self)
|
local is_a = (parent.a == self)
|
||||||
local other = parent[is_a and "b" or "a"]
|
local other = parent[is_a and "b" or "a"]
|
||||||
local locked_size_x, locked_size_y = other:get_locked_size()
|
local locked_size_x, locked_size_y = other:get_locked_size()
|
||||||
if locked_size_x or locked_size_y then
|
if (parent.type == "hsplit" and locked_size_x or locked_size_y) then
|
||||||
self.views = {}
|
self.views = {}
|
||||||
self:add_view(EmptyView())
|
self:add_view(EmptyView())
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue