From: m@mmmmarascio.xyz Date: Sun, 13 Mar 2016 15:49:35 +0000 (-0700) Subject: Call context_read() before getting filter in repl X-Git-Tag: mmh-0.3~55 X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=d6742b1bb19c7eca8488402484a6e4f55543d789;p=mmh Call context_read() before getting filter in repl The manual page of repl says "[i]f a file named `mhl.reply' exists in the user's mmh directory, it will be used instead of [the default form file]". Now this behavior is implement. --- diff --git a/uip/repl.c b/uip/repl.c index 71ae98e..f1e4bcc 100644 --- a/uip/repl.c +++ b/uip/repl.c @@ -145,14 +145,14 @@ main(int argc, char **argv) FILE *in; int buildsw = 0; - filter = getcpy(etcpath(mhlreply)); - setlocale(LC_ALL, ""); invo_name = mhbasename(argv[0]); /* read user profile/context */ context_read(); + filter = getcpy(etcpath(mhlreply)); + arguments = getarguments(invo_name, argc, argv, 1); argp = arguments;