comparison src/os_unix.c @ 6721:7347229a646a v7.4.684

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.
author Bram Moolenaar <bram@vim.org>
date Tue, 31 Mar 2015 13:33:08 +0200
parents 6529590f6c43
children 62ba356c2d4e
comparison
equal deleted inserted replaced
6720:1f42458bf2e7 6721:7347229a646a
5836 return FAIL; 5836 return FAIL;
5837 5837
5838 /* 5838 /*
5839 * get a name for the temp file 5839 * get a name for the temp file
5840 */ 5840 */
5841 if ((tempname = vim_tempname('o')) == NULL) 5841 if ((tempname = vim_tempname('o', FALSE)) == NULL)
5842 { 5842 {
5843 EMSG(_(e_notmp)); 5843 EMSG(_(e_notmp));
5844 return FAIL; 5844 return FAIL;
5845 } 5845 }
5846 5846