X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/1691e80890e5d8ba258c51c214a3e91880e1db2b..e6082c44cba0749864df4db1e0ce43fb9ce2a68a:/uip/show.c diff --git a/uip/show.c b/uip/show.c index 5ab63702..75e4827f 100644 --- a/uip/show.c +++ b/uip/show.c @@ -315,6 +315,14 @@ go_to_it: ; vec[vecp] = NULL; } + /* If the "proc" is "mhshow", add "-file" if showing file or draft. + */ + if (strcmp (r1bindex (proc, '/'), "mhshow") == 0 && (draftsw || file) ) { + vec[vecp] = vec[vecp - 1]; + vec[vecp - 1] = "-file"; + vec[++vecp] = NULL; + } + /* * If "proc" is mhl, then run it internally * rather than exec'ing it.