diff --git a/src/config/app_config.rs b/src/config/app_config.rs index 91e3291..0c660cf 100644 --- a/src/config/app_config.rs +++ b/src/config/app_config.rs @@ -313,6 +313,7 @@ impl AppConfig { super::EDITOR.get_or_init(move || { if let Some(editor) = self.editor.clone() .or_else(|| env::var("VISUAL").ok().or_else(|| env::var("EDITOR").ok())) + && which::which(&editor).is_ok() { return Some(editor); }