X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fwhatnowproc.c;h=fbea9416d3e1868003779fc9b7e15f20bb34ea5f;hp=12cd13af70e79a7e60b314ba7a8c18f82394c254;hb=f85f4b7ae62e3d05a945dcd46ead51f0a2a89a9b;hpb=c73c00bfccd22ec77e9593f47462aeca4a8cd9c0 diff --git a/uip/whatnowproc.c b/uip/whatnowproc.c index 12cd13a..fbea941 100644 --- a/uip/whatnowproc.c +++ b/uip/whatnowproc.c @@ -17,7 +17,7 @@ */ int what_now(char *ed, int nedit, int use, char *file, char *altmsg, int dist, - struct msgs *mp, char *text, int inplace, char *cwd) + struct msgs *mp, char *text, char *cwd) { int found, k, msgnum, vecp; int len, buflen; @@ -51,15 +51,13 @@ what_now(char *ed, int nedit, int use, char *file, char *altmsg, int dist, if (nedit) { unputenv("mheditor"); } else { - m_putenv("mheditor", ed ? ed : (ed = context_find("editor")) ? - ed : defaulteditor); + m_putenv("mheditor", ed ? ed : defaulteditor); } snprintf(buffer, sizeof(buffer), "%d", use); m_putenv("mhuse", buffer); unputenv("mhmessages"); unputenv("mhannotate"); - unputenv("mhinplace"); if (text && mp && !is_readonly(mp)) { found = 0; @@ -87,8 +85,6 @@ what_now(char *ed, int nedit, int use, char *file, char *altmsg, int dist, if (found) { m_putenv("mhmessages", buffer); m_putenv("mhannotate", text); - snprintf(buffer, sizeof(buffer), "%d", inplace); - m_putenv("mhinplace", buffer); } }