diff options
author | Bram Moolenaar <Bram@vim.org> | 2015-03-31 13:33:08 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2015-03-31 13:33:08 +0200 |
commit | e5c421cfd70a4d864faa0fac4e9f2dd6cdf5881d (patch) | |
tree | 77b845e567cd28c87bf4e9226384cccf04ab645b /src/memline.c | |
parent | 1ca2e361a869c58a775b5fabb2aaf4e2675ea7ba (diff) | |
download | vim-git-e5c421cfd70a4d864faa0fac4e9f2dd6cdf5881d.tar.gz |
updated for version 7.4.684v7.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.
Diffstat (limited to 'src/memline.c')
-rw-r--r-- | src/memline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/memline.c b/src/memline.c index d62697d6b..730496c18 100644 --- a/src/memline.c +++ b/src/memline.c @@ -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; |