tiling: Fix lateral movement #129

This commit is contained in:
Victoria Brekenfeld 2023-06-05 18:16:32 +02:00
parent 359cf70b49
commit 90e1eab7a8

View file

@ -632,7 +632,7 @@ impl TilingLayout {
| (Orientation::Vertical, Direction::Up)
| (Orientation::Vertical, Direction::Down)
) {
if parent_data.len() == 2 {
if len == 2 {
if let Some(sibling) = tree
.children_ids(&parent)
.unwrap()
@ -648,7 +648,8 @@ impl TilingLayout {
| (Orientation::Vertical, Direction::Left)
| (Orientation::Horizontal, Direction::Up)
| (Orientation::Horizontal, Direction::Down)
) {
) && child_id == node_id
{
// ..lets move into our sibling group instead
let idx =