]> diplodocus.org Git - nmh/blobdiff - sbr/geteditor.c
Fixed inc(1) and %(me) to not obey Local-Mailbox profile component.
[nmh] / sbr / geteditor.c
index 3b472ec1233aeba79b4471cf30c6d764cb5c3a1b..a007199854430cb577dbe2c1cb904f255acbe4ba 100644 (file)
@@ -18,11 +18,11 @@ get_default_editor(void)
     char *str;
 
     if (default_editor)
-       return default_editor;
+       return default_editor;
 
     if (!(str = context_find("editor")) && !(str = getenv("VISUAL")) &&
-       !(str = getenv("EDITOR"))) {
-       str = "vi";
+       !(str = getenv("EDITOR"))) {
+       str = "prompter";
     }
 
     return default_editor = str;