aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/misc1.c
diff options
context:
space:
mode:
authorNicolas Hillegeer <nicolas@hillegeer.com>2014-07-14 21:17:39 +0200
committerNicolas Hillegeer <nicolas@hillegeer.com>2014-07-14 21:17:39 +0200
commit2b62dcddf801e096bde7d4608e090018b5227e98 (patch)
tree728251b27edf7110565bc0c4c8cc5864f5b31bfe /src/nvim/misc1.c
parent47084ea7657121837536d409b9137fd38426aeef (diff)
parent14239ae33128ae961a4ce9e68436ad3f0f557b90 (diff)
downloadrneovim-2b62dcddf801e096bde7d4608e090018b5227e98.tar.gz
rneovim-2b62dcddf801e096bde7d4608e090018b5227e98.tar.bz2
rneovim-2b62dcddf801e096bde7d4608e090018b5227e98.zip
Merge #850 'impl mkdtemp for windows, refactor vim_tempname'
Diffstat (limited to 'src/nvim/misc1.c')
-rw-r--r--src/nvim/misc1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/misc1.c b/src/nvim/misc1.c
index 3fc078cb8a..6ba1e68d64 100644
--- a/src/nvim/misc1.c
+++ b/src/nvim/misc1.c
@@ -52,6 +52,7 @@
#include "nvim/strings.h"
#include "nvim/tag.h"
#include "nvim/term.h"
+#include "nvim/tempfile.h"
#include "nvim/ui.h"
#include "nvim/undo.h"
#include "nvim/window.h"
@@ -3423,7 +3424,7 @@ get_cmd_output (
return NULL;
/* get a name for the temp file */
- if ((tempname = vim_tempname('o')) == NULL) {
+ if ((tempname = vim_tempname()) == NULL) {
EMSG(_(e_notmp));
return NULL;
}