From 06ac701349d9ef6ae1be583abbcc35f591992c84 Mon Sep 17 00:00:00 2001 From: Victoria Brekenfeld Date: Fri, 26 May 2023 12:14:15 +0200 Subject: [PATCH] Fix #124 --- src/shell/layout/tiling/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shell/layout/tiling/mod.rs b/src/shell/layout/tiling/mod.rs index 619c312a..1358e41d 100644 --- a/src/shell/layout/tiling/mod.rs +++ b/src/shell/layout/tiling/mod.rs @@ -754,7 +754,7 @@ impl TilingLayout { .nth(next_idx) .unwrap() .clone(); - if tree.get(&next_child_id).unwrap().data().is_group() { + if tree.get(&next_child_id).unwrap().data().is_group() && len == 2 { // if it is a group, we want to move into the group tree.move_node(&node_id, MoveBehavior::ToParent(&next_child_id)) .unwrap();