X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fwhatnow.c;h=3d97716c1646aa5cab803f3108c0d616e0afeb46;hp=b809ebebdf879b0c0f3f6ea100adf75c7a1b5d67;hb=f33f12af33361e5d688cd1700c1ee03af5988fd9;hpb=5fbf37ee68e018998ada61eeab73e035b26834b6 diff --git a/uip/whatnow.c b/uip/whatnow.c index b809ebe..3d97716 100644 --- a/uip/whatnow.c +++ b/uip/whatnow.c @@ -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) {