s/lproc/listproc/
[mmh] / uip / whatnow.c
index b809ebe..3d97716 100644 (file)
@@ -220,7 +220,7 @@ main(int argc, char **argv)
                        /* display the msg being replied to or distributed */
                        if (msgnam) {
                                snprintf(buf, sizeof buf, "%s '%s'",
-                                               lproc, msgnam);
+                                               listproc, msgnam);
                                system(buf);
                        } else {
                                advise(NULL, "no alternate message to display");
@@ -238,7 +238,7 @@ main(int argc, char **argv)
 
                case LISTSW:
                        /* display the draft file */
-                       snprintf(buf, sizeof buf, "%s '%s'", lproc, drft);
+                       snprintf(buf, sizeof buf, "%s '%s'", listproc, drft);
                        system(buf);
                        break;
 
@@ -622,10 +622,9 @@ editfile(char **ed, char **arg, char *file, int use, struct msgs *mp,
                        if ((cp = context_find(cp)) != NULL)
                                *ed = cp;
                }
-       } else {
+       } else if (!*ed) {
                /* set initial editor */
-               if (*ed == NULL && (*ed = context_find("editor")) == NULL)
-                       *ed = defaulteditor;
+               *ed = defaulteditor;
        }
 
        if (altmsg) {