From e5c421cfd70a4d864faa0fac4e9f2dd6cdf5881d Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 31 Mar 2015 13:33:08 +0200 Subject: updated for version 7.4.684 Problem: When starting several Vim instances in diff mode, the temp files used may not be unique. (Issue 353) Solution: Add an argument to vim_tempname() to keep the file. --- src/hardcopy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/hardcopy.c') diff --git a/src/hardcopy.c b/src/hardcopy.c index 1e795e6b57..95a367d496 100644 --- a/src/hardcopy.c +++ b/src/hardcopy.c @@ -2751,7 +2751,7 @@ mch_print_init(psettings, jobname, forceit) /* If the user didn't specify a file name, use a temp file. */ if (psettings->outfile == NULL) { - prt_ps_file_name = vim_tempname('p'); + prt_ps_file_name = vim_tempname('p', TRUE); if (prt_ps_file_name == NULL) { EMSG(_(e_notmp)); -- cgit v1.2.3