diff options
author | Pavel Platto <hinidu@gmail.com> | 2014-06-19 23:46:51 +0300 |
---|---|---|
committer | Nicolas Hillegeer <nicolas@hillegeer.com> | 2014-07-14 21:14:40 +0200 |
commit | 29e0cd1571b773feb7fd61118930cdac7d83e38c (patch) | |
tree | 5190da12cc72647b1573c44b55bcc0e030a6be81 /src/nvim/memline.c | |
parent | edd7a8c5ddd99bd0c02b4218d43bccb562809d55 (diff) | |
download | rneovim-29e0cd1571b773feb7fd61118930cdac7d83e38c.tar.gz rneovim-29e0cd1571b773feb7fd61118930cdac7d83e38c.tar.bz2 rneovim-29e0cd1571b773feb7fd61118930cdac7d83e38c.zip |
Refactor vim_tempname
- temp_count is uint32_t now instead of long because it supposed to be
at most 999999999 (comment on line 5227) temporary files. The most
probably it was a long for compatibility with systems where int is
16-bit.
- Use "nvim" as prefix for temp folder name instead of "v"
- Remove unused parameter from vim_tempname
Diffstat (limited to 'src/nvim/memline.c')
-rw-r--r-- | src/nvim/memline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/memline.c b/src/nvim/memline.c index f951eb9379..c41942301f 100644 --- a/src/nvim/memline.c +++ b/src/nvim/memline.c @@ -490,7 +490,7 @@ void ml_open_file(buf_T *buf) /* For a spell buffer use a temp file name. */ if (buf->b_spell) { - fname = vim_tempname('s'); + fname = vim_tempname(); if (fname != NULL) (void)mf_open_file(mfp, fname); /* consumes fname! */ buf->b_may_swap = FALSE; |