]> diplodocus.org Git - nmh/commitdiff
Fixed to commit 378589b17424bd78acbfc57d505383ffb8c256cb:
authorDavid Levine <levinedl@acm.org>
Fri, 23 May 2014 01:39:45 +0000 (20:39 -0500)
committerDavid Levine <levinedl@acm.org>
Fri, 23 May 2014 01:39:45 +0000 (20:39 -0500)
when a -file switch will be used, insert -[no]concat before
the filename (and therefore, the -file switch itself).

uip/show.c

index b14c60d9d8997b5fb6f42cde82557415b5379189..e5b71eff0a24a7246bfb0d58ca778b563a50fd00 100644 (file)
@@ -301,7 +301,13 @@ go_to_it: ;
        char **mp;
 
        for (i = 0, mp = non_mhl_vec.msgs; i < non_mhl_vec.size; ++i, ++mp) {
        char **mp;
 
        for (i = 0, mp = non_mhl_vec.msgs; i < non_mhl_vec.size; ++i, ++mp) {
-           app_msgarg(&vec, *mp);
+           if (draftsw || file) {
+               /* Insert the switch before the filename. */
+               app_msgarg(&vec, vec.msgs[vec.size - 1]);
+               vec.msgs[vec.size - 2] = *mp;
+           } else {
+               app_msgarg(&vec, *mp);
+           }
        }
 
        if (strcmp (r1bindex (proc, '/'), "mhn") == 0) {
        }
 
        if (strcmp (r1bindex (proc, '/'), "mhn") == 0) {