Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-term/src/main.rs')
-rw-r--r--helix-term/src/main.rs17
1 files changed, 9 insertions, 8 deletions
diff --git a/helix-term/src/main.rs b/helix-term/src/main.rs
index bdca0c01..0bc87cf4 100644
--- a/helix-term/src/main.rs
+++ b/helix-term/src/main.rs
@@ -140,14 +140,15 @@ FLAGS:
}
};
- let lang_loader = helix_core::config::user_lang_loader().unwrap_or_else(|err| {
- eprintln!("{}", err);
- eprintln!("Press <ENTER> to continue with default language config");
- use std::io::Read;
- // This waits for an enter press.
- let _ = std::io::stdin().read(&mut []);
- helix_core::config::default_lang_loader()
- });
+ let lang_loader =
+ helix_core::config::user_lang_loader(config.editor.insecure).unwrap_or_else(|err| {
+ eprintln!("{}", err);
+ eprintln!("Press <ENTER> to continue with default language config");
+ use std::io::Read;
+ // This waits for an enter press.
+ let _ = std::io::stdin().read(&mut []);
+ helix_core::config::default_lang_loader()
+ });
// TODO: use the thread local executor to spawn the application task separately from the work pool
let mut app = Application::new(args, config, lang_loader).context("unable to start Helix")?;