mirror of
https://github.com/vim/vim.git
synced 2025-10-06 05:44:14 -04:00
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.
This commit is contained in:
@@ -757,7 +757,7 @@ ml_open_file(buf)
|
||||
/* For a spell buffer use a temp file name. */
|
||||
if (buf->b_spell)
|
||||
{
|
||||
fname = vim_tempname('s');
|
||||
fname = vim_tempname('s', FALSE);
|
||||
if (fname != NULL)
|
||||
(void)mf_open_file(mfp, fname); /* consumes fname! */
|
||||
buf->b_may_swap = FALSE;
|
||||
|
Reference in New Issue
Block a user