]> diplodocus.org Git - nmh/blobdiff - sbr/geteditor.c
new.c: Order two return statements to match comment.
[nmh] / sbr / geteditor.c
index 6c285da9c37cd4b798e01158ff1584f8da4a5e01..9889a5e39a31290680205e0969fa0268eab7d44f 100644 (file)
@@ -1,6 +1,4 @@
-
-/*
- * geteditor.c -- Determine the default editor to use
+/* geteditor.c -- Determine the default editor to use
  *
  * This code is Copyright (c) 2013, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -22,7 +20,7 @@ get_default_editor(void)
 
     if (!(str = context_find("editor")) && !(str = getenv("VISUAL")) &&
        !(str = getenv("EDITOR"))) {
-       str = DEFAULT_EDITOR;
+       str = "vi";
     }
 
     return (default_editor = str);