X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fshow.c;h=75e4827fc3e30924c0897944b61e1532fd640bef;hb=673859dfa72a5f4d485ae22d29ff2e2fc4147bf5;hp=5ab6370287182be486915eb7a66dff7e57202a11;hpb=1691e80890e5d8ba258c51c214a3e91880e1db2b;p=mmh diff --git a/uip/show.c b/uip/show.c index 5ab6370..75e4827 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.