Mercurial > vim
diff src/memline.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 | f8f2a61e538d |
children | cd47def2214a |
line wrap: on
line diff
--- 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;