Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-view/src/ui/overlay.rs')
| -rw-r--r-- | helix-view/src/ui/overlay.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/helix-view/src/ui/overlay.rs b/helix-view/src/ui/overlay.rs index f44374eb..0b13212e 100644 --- a/helix-view/src/ui/overlay.rs +++ b/helix-view/src/ui/overlay.rs @@ -48,6 +48,11 @@ impl<T: Component + 'static> compositor::term::Render for Overlay<T> { let dimensions = (self.calc_child_size)(area); self.content.render(dimensions, ctx) } + + fn cursor(&self, area: Rect, ctx: &Editor) -> (Option<Position>, CursorKind) { + let dimensions = (self.calc_child_size)(area); + self.content.cursor(dimensions, ctx) + } } impl<T: Component + 'static> Component for Overlay<T> { @@ -67,9 +72,4 @@ impl<T: Component + 'static> Component for Overlay<T> { fn handle_event(&mut self, event: Event, ctx: &mut Context) -> EventResult { self.content.handle_event(event, ctx) } - - fn cursor(&self, area: Rect, ctx: &Editor) -> (Option<Position>, CursorKind) { - let dimensions = (self.calc_child_size)(area); - self.content.cursor(dimensions, ctx) - } } |