on master help sign in
Drop some useless imports.
ccdebb9Blaž Hrastnik
helix-term/src/ui/completion.rs−1
@@ -4,7 +4,6 @@ use tui::{
4 buffer::Buffer as Surface,
4 buffer::Buffer as Surface,
5 layout::Rect,
5 layout::Rect,
6 style::{Color, Style},
6 style::{Color, Style},
7− widgets::{Block, Borders},
8};
7};
9
8
10use std::borrow::Cow;
9use std::borrow::Cow;
helix-term/src/ui/menu.rs−1
@@ -4,7 +4,6 @@ use tui::{
4 buffer::Buffer as Surface,
4 buffer::Buffer as Surface,
5 layout::Rect,
5 layout::Rect,
6 style::{Color, Style},
6 style::{Color, Style},
7− widgets::{Block, Borders},
8};
7};
9
8
10use std::borrow::Cow;
9use std::borrow::Cow;
helix-term/src/ui/picker.rs+1−2
@@ -4,7 +4,7 @@ use tui::{
4 buffer::Buffer as Surface,
4 buffer::Buffer as Surface,
5 layout::Rect,
5 layout::Rect,
6 style::{Color, Style},
6 style::{Color, Style},
7− widgets::{Block, Borders},
7+ widgets::{Block, BorderType, Borders},
8};
8};
9
9
10use fuzzy_matcher::skim::SkimMatcherV2 as Matcher;
10use fuzzy_matcher::skim::SkimMatcherV2 as Matcher;
@@ -224,7 +224,6 @@ impl<T: 'static> Component for Picker<T> {
224 self.prompt.render(area, surface, cx);
224 self.prompt.render(area, surface, cx);
225
225
226 // -- Separator
226 // -- Separator
227− use tui::widgets::BorderType;
228 let style = Style::default().fg(Color::Rgb(90, 89, 119));
227 let style = Style::default().fg(Color::Rgb(90, 89, 119));
229 let symbols = BorderType::line_symbols(BorderType::Plain);
228 let symbols = BorderType::line_symbols(BorderType::Plain);
230 for x in inner.left()..inner.right() {
229 for x in inner.left()..inner.right() {
helix-term/src/ui/popup.rs−6
@@ -4,7 +4,6 @@ use tui::{
4 buffer::Buffer as Surface,
4 buffer::Buffer as Surface,
5 layout::Rect,
5 layout::Rect,
6 style::{Color, Style},
6 style::{Color, Style},
7− widgets::{Block, Borders},
8};
7};
9
8
10use std::borrow::Cow;
9use std::borrow::Cow;
@@ -113,11 +112,6 @@ impl<T: Component> Component for Popup<T> {
113 }
112 }
114
113
115 fn render(&self, viewport: Rect, surface: &mut Surface, cx: &mut Context) {
114 fn render(&self, viewport: Rect, surface: &mut Surface, cx: &mut Context) {
116− use tui::{
117− text::Text,
118− widgets::{Paragraph, Widget, Wrap},
119− };
120−
121 cx.scroll = Some(self.scroll);
115 cx.scroll = Some(self.scroll);
122
116
123 let position = self
117 let position = self