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:
@@ -143,7 +143,7 @@ function Node:remove_view(root, view)
|
||||
local is_a = (parent.a == self)
|
||||
local other = parent[is_a and "b" or "a"]
|
||||
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:add_view(EmptyView())
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user