]> diplodocus.org Git - nmh/blobdiff - sbr/geteditor.c
Improve this documentation a bit.
[nmh] / sbr / geteditor.c
index 80602af34ad479d87dddf9cc56f147a7c690f95e..2fbe1f56a9e850df0369d64fb40ef3eb047f1c38 100644 (file)
@@ -20,8 +20,8 @@ get_default_editor(void)
 
     if (!(str = context_find("editor")) && !(str = getenv("VISUAL")) &&
        !(str = getenv("EDITOR"))) {
-       str = DEFAULT_EDITOR;
+       str = "vi";
     }
 
-    return (default_editor = str);
+    return default_editor = str;
 }