From df77ac6ade9b551076b33f2addafbb7ae7f06bd3 Mon Sep 17 00:00:00 2001 From: David Levine Date: Thu, 22 May 2014 20:39:45 -0500 Subject: [PATCH] Fixed to commit 378589b17424bd78acbfc57d505383ffb8c256cb: when a -file switch will be used, insert -[no]concat before the filename (and therefore, the -file switch itself). --- uip/show.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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) { -- 2.56.0