fix: default to the nano or notepad when a configured editor is not found
CI / All (ubuntu-latest) (push) Failing after 25s
CI / All (macos-latest) (push) Has been cancelled
CI / All (windows-latest) (push) Has been cancelled

This commit is contained in:
2026-07-15 15:32:07 -06:00
parent 7f89a80f7e
commit 8bbbd71fec
+1
View File
@@ -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);
}