From fb955e4e125da49f4f2f85bab42936c7bfaf5402 Mon Sep 17 00:00:00 2001 From: Guldoman Date: Wed, 15 Sep 2021 03:42:59 +0200 Subject: [PATCH] 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. --- data/core/rootview.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/core/rootview.lua b/data/core/rootview.lua index 836f9e9a..c2895cf5 100644 --- a/data/core/rootview.lua +++ b/data/core/rootview.lua @@ -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