diff options
author | Ivan Tham | 2021-07-02 01:46:28 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-07-04 09:01:59 +0000 |
commit | 5977b07e197cc6ef9051dd34a28b9fe28e01e966 (patch) | |
tree | e14f86efd2d8c44d87f7de25f69ef735b0aaaf92 /helix-view/src/editor.rs | |
parent | 64f83dfcbd3e093a31b2ef6bd787161ea8904583 (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-view/src/editor.rs')
-rw-r--r-- | helix-view/src/editor.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs index b006a124..4f01cce4 100644 --- a/helix-view/src/editor.rs +++ b/helix-view/src/editor.rs @@ -33,7 +33,7 @@ pub struct Editor { pub syn_loader: Arc<syntax::Loader>, pub theme_loader: Arc<theme::Loader>, - pub autoinfo: Option<Info>, + pub autoinfo: Option<&'static Info>, pub status_msg: Option<(String, Severity)>, } |