From: David Levine Date: Fri, 23 May 2014 01:39:45 +0000 (-0500) Subject: Fixed to commit 378589b17424bd78acbfc57d505383ffb8c256cb: X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/df77ac6ade9b551076b33f2addafbb7ae7f06bd3?ds=inline;hp=-c Fixed to commit 378589b17424bd78acbfc57d505383ffb8c256cb: when a -file switch will be used, insert -[no]concat before the filename (and therefore, the -file switch itself). --- df77ac6ade9b551076b33f2addafbb7ae7f06bd3 diff --git a/uip/show.c b/uip/show.c index b14c60d9..e5b71eff 100644 --- a/uip/show.c +++ b/uip/show.c @@ -301,7 +301,13 @@ go_to_it: ; 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) {