From a2ccfffda1171bde5118c1a1120af49dc87aecca Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Sun, 8 Aug 2021 14:07:14 +0900 Subject: config: Rename [terminal] to [editor] and pass it into Editor --- helix-term/src/application.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'helix-term/src/application.rs') 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(()) -- cgit v1.2.3-70-g09d2