aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/ui
diff options
context:
space:
mode:
authorIvan Tham2021-07-02 01:46:28 +0000
committerBlaž Hrastnik2021-07-04 09:01:59 +0000
commit5977b07e197cc6ef9051dd34a28b9fe28e01e966 (patch)
treee14f86efd2d8c44d87f7de25f69ef735b0aaaf92 /helix-term/src/ui
parent64f83dfcbd3e093a31b2ef6bd787161ea8904583 (diff)
Reduce calculation and improve pattern in infobox
- switch to use static OnceCell to calculate Info once - pass Vec<(&[KeyEvent], &str)> rather than Vec<(Vec<KeyEvent>, &str)> - expr -> tt to allow using | as separator, make it more like match
Diffstat (limited to 'helix-term/src/ui')
-rw-r--r--helix-term/src/ui/info.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/ui/info.rs b/helix-term/src/ui/info.rs
index 87c2c213..c6f8db43 100644
--- a/helix-term/src/ui/info.rs
+++ b/helix-term/src/ui/info.rs
@@ -1,5 +1,5 @@
use crate::compositor::{Component, Context};
-use helix_view::graphics::{Margin, Rect, Style};
+use helix_view::graphics::Rect;
use helix_view::info::Info;
use tui::buffer::Buffer as Surface;
use tui::widgets::{Block, Borders, Widget};