aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/application.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-08-08 05:07:14 +0000
committerBlaž Hrastnik2021-08-08 05:10:01 +0000
commita2ccfffda1171bde5118c1a1120af49dc87aecca (patch)
tree54138341e17ebf600c37c9830914a546ce39fb04 /helix-term/src/application.rs
parentf0eb6ed96a6e61ee6abe3aa14071cfc003d0b37f (diff)
config: Rename [terminal] to [editor] and pass it into Editor
Diffstat (limited to 'helix-term/src/application.rs')
-rw-r--r--helix-term/src/application.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs
index 01ea617f..9cd9ee7e 100644
--- a/helix-term/src/application.rs
+++ b/helix-term/src/application.rs
@@ -80,7 +80,12 @@ impl Application {
let syn_loader_conf = toml::from_slice(lang_conf).expect("Could not parse languages.toml");
let syn_loader = std::sync::Arc::new(syntax::Loader::new(syn_loader_conf));
- let mut editor = Editor::new(size, theme_loader.clone(), syn_loader.clone());
+ let mut editor = Editor::new(
+ size,
+ theme_loader.clone(),
+ syn_loader.clone(),
+ config.editor.clone(),
+ );
let editor_view = Box::new(ui::EditorView::new(std::mem::take(&mut config.keys)));
compositor.push(editor_view);
@@ -489,7 +494,7 @@ impl Application {
terminal::enable_raw_mode()?;
let mut stdout = stdout();
execute!(stdout, terminal::EnterAlternateScreen)?;
- if self.config.terminal.mouse {
+ if self.config.editor.mouse {
execute!(stdout, EnableMouseCapture)?;
}
Ok(())