aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/ui/popup.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-03-22 03:40:07 +0000
committerBlaž Hrastnik2021-03-22 03:40:07 +0000
commitcbcacb1063c9b6384867a6078a75595ae2ff6861 (patch)
tree0b1b48b06eacd14a1ac0eb06581d79b92a01e573 /helix-term/src/ui/popup.rs
parentc4792efead160859d17f8ca969869037b7d2e1d5 (diff)
Merge some imports.
Diffstat (limited to 'helix-term/src/ui/popup.rs')
-rw-r--r--helix-term/src/ui/popup.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/helix-term/src/ui/popup.rs b/helix-term/src/ui/popup.rs
index 572c651b..98ccae61 100644
--- a/helix-term/src/ui/popup.rs
+++ b/helix-term/src/ui/popup.rs
@@ -1,7 +1,7 @@
use crate::compositor::{Component, Compositor, Context, EventResult};
use crossterm::event::{Event, KeyCode, KeyEvent, KeyModifiers};
-use tui::buffer::Buffer as Surface;
use tui::{
+ buffer::Buffer as Surface,
layout::Rect,
style::{Color, Style},
widgets::{Block, Borders},
@@ -107,8 +107,10 @@ impl Component for Popup {
}
fn render(&self, viewport: Rect, surface: &mut Surface, cx: &mut Context) {
- use tui::text::Text;
- use tui::widgets::{Paragraph, Widget, Wrap};
+ use tui::{
+ text::Text,
+ widgets::{Paragraph, Widget, Wrap},
+ };
cx.scroll = Some(self.scroll);