From 8bbbd71fec49b6377ca1bf00d3a537f9d4c62efd Mon Sep 17 00:00:00 2001 From: Alex Clarke Date: Wed, 15 Jul 2026 15:32:07 -0600 Subject: [PATCH] fix: default to the nano or notepad when a configured editor is not found --- src/config/app_config.rs | 1 + 1 file changed, 1 insertion(+) 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); }