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:
Guldoman 2021-09-15 03:42:59 +02:00 committed by Francesco
parent 1e8031a0e8
commit fb955e4e12
1 changed files with 1 additions and 1 deletions

View File

@ -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