diff options
Diffstat (limited to 'helix-view/src/tree.rs')
-rw-r--r-- | helix-view/src/tree.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-view/src/tree.rs b/helix-view/src/tree.rs index a1977764..6174021c 100644 --- a/helix-view/src/tree.rs +++ b/helix-view/src/tree.rs @@ -499,7 +499,7 @@ impl Tree { // in a vertical container (and already correct based on previous search) child_id = *container.children.iter().min_by_key(|id| { let x = match &self.nodes[**id].content { - Content::View(view) => view.inner_area().left(), + Content::View(view) => view.area.left(), Content::Container(container) => container.area.left(), }; (current_x as i16 - x as i16).abs() @@ -510,7 +510,7 @@ impl Tree { // in a horizontal container (and already correct based on previous search) child_id = *container.children.iter().min_by_key(|id| { let y = match &self.nodes[**id].content { - Content::View(view) => view.inner_area().top(), + Content::View(view) => view.area.top(), Content::Container(container) => container.area.top(), }; (current_y as i16 - y as i16).abs() |