Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-term/src/ui/text.rs')
| -rw-r--r-- | helix-term/src/ui/text.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-term/src/ui/text.rs b/helix-term/src/ui/text.rs index c318052b..81b1cdc1 100644 --- a/helix-term/src/ui/text.rs +++ b/helix-term/src/ui/text.rs @@ -1,4 +1,4 @@ -use crate::compositor::{Component, Context}; +use crate::compositor::{Component, RenderContext}; use tui::buffer::Buffer as Surface; use helix_view::graphics::Rect; @@ -30,7 +30,7 @@ impl From<tui::text::Text<'static>> for Text { } impl Component for Text { - fn render(&mut self, area: Rect, surface: &mut Surface, _cx: &mut Context) { + fn render(&mut self, area: Rect, surface: &mut Surface, _cx: &mut RenderContext<'_>) { use tui::widgets::{Paragraph, Widget, Wrap}; let par = Paragraph::new(self.contents.clone()).wrap(Wrap { trim: false }); |