tiling: Fix lateral movement #129
This commit is contained in:
parent
359cf70b49
commit
90e1eab7a8
1 changed files with 3 additions and 2 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue