mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 16:58:17 +00:00
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
This commit is contained in:

committed by
Nicolas Hillegeer

parent
edd7a8c5dd
commit
29e0cd1571
@@ -1034,7 +1034,7 @@ int mch_expand_wildcards(int num_pat, char_u **pat, int *num_file,
|
||||
/*
|
||||
* get a name for the temp file
|
||||
*/
|
||||
if ((tempname = vim_tempname('o')) == NULL) {
|
||||
if ((tempname = vim_tempname()) == NULL) {
|
||||
EMSG(_(e_notmp));
|
||||
return FAIL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user