From 64b662228f0c0c928b8e9ac0825bb8280e59ed52 Mon Sep 17 00:00:00 2001 From: Stephen Broadley Date: Mon, 11 Nov 2024 19:04:10 +0000 Subject: [PATCH] renamed get_view_areas -> get_areas --- helix-term/src/ui/editor.rs | 4 ++-- helix-view/src/view.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index 585689323..8aa60af14 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -88,7 +88,7 @@ impl EditorView { surface: &mut Surface, is_focused: bool, ) { - let areas = view.get_view_areas(doc); + let areas = view.get_areas(doc); // TODO: use the 'areas' struct for these! let inner = areas.text; @@ -768,7 +768,7 @@ impl EditorView { let info = theme.get("info"); let hint = theme.get("hint"); - let areas = view.get_view_areas(doc); + let areas = view.get_areas(doc); let width = 50.min(areas.text.width); let height = 15.min(areas.text.height); // .min(text.lines.len() as u16); diff --git a/helix-view/src/view.rs b/helix-view/src/view.rs index 398b2b455..66f3263de 100644 --- a/helix-view/src/view.rs +++ b/helix-view/src/view.rs @@ -208,7 +208,7 @@ impl View { self.docs_access_history.push(id); } - pub fn get_view_areas(&self, doc: &Document) -> ViewAreas { + pub fn get_areas(&self, doc: &Document) -> ViewAreas { let config = doc.config.load(); let gutter = self.gutter_offset(doc); @@ -269,7 +269,7 @@ impl View { /// Returns the 'inner area' (the text renderable area) of the view. /// pub fn inner_area(&self, doc: &Document) -> Rect { - self.get_view_areas(doc).text + self.get_areas(doc).text } pub fn inner_height(&self) -> usize {