diff options
Diffstat (limited to 'helix-tui/src/widgets/paragraph.rs')
-rw-r--r-- | helix-tui/src/widgets/paragraph.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/helix-tui/src/widgets/paragraph.rs b/helix-tui/src/widgets/paragraph.rs index ecce8581..bdfb5b9a 100644 --- a/helix-tui/src/widgets/paragraph.rs +++ b/helix-tui/src/widgets/paragraph.rs @@ -1,13 +1,13 @@ use crate::{ buffer::Buffer, - layout::{Alignment, Rect}, - style::Style, + layout::Alignment, text::{StyledGrapheme, Text}, widgets::{ reflow::{LineComposer, LineTruncator, WordWrapper}, Block, Widget, }, }; +use helix_view::graphics::{Rect, Style}; use std::iter; use unicode_width::UnicodeWidthStr; @@ -26,8 +26,8 @@ fn get_line_offset(line_width: u16, text_area_width: u16, alignment: Alignment) /// ``` /// # use helix_tui::text::{Text, Spans, Span}; /// # use helix_tui::widgets::{Block, Borders, Paragraph, Wrap}; -/// # use helix_tui::style::{Style, Color, Modifier}; /// # use helix_tui::layout::{Alignment}; +/// # use helix_view::graphics::{Style, Color, Modifier}; /// let text = vec![ /// Spans::from(vec![ /// Span::raw("First"), |