]> git.marmaro.de Git - mmh/blobdiff - uip/show.c
use mkstemp on systems that have it
[mmh] / uip / show.c
index 5ab6370287182be486915eb7a66dff7e57202a11..75e4827fc3e30924c0897944b61e1532fd640bef 100644 (file)
@@ -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.