aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-03-29 18:29:46 +0200
committerJustin M. Keyes <justinkz@gmail.com>2017-03-30 02:55:00 +0200
commit1f478cebeb929332e90c1b50de4b8a4f311a0df2 (patch)
tree6cdbc962214a78e20d2e51bb656548bbc077b74e /src
parent6964b67c00f9aa029791137f44f30ed4aef20ef4 (diff)
downloadrneovim-1f478cebeb929332e90c1b50de4b8a4f311a0df2.tar.gz
rneovim-1f478cebeb929332e90c1b50de4b8a4f311a0df2.tar.bz2
rneovim-1f478cebeb929332e90c1b50de4b8a4f311a0df2.zip
win: tempname(): Use $TMPDIR if defined.
Diffstat (limited to 'src')
-rw-r--r--src/nvim/os/win_defs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/os/win_defs.h b/src/nvim/os/win_defs.h
index 827fb2f247..7c980c3768 100644
--- a/src/nvim/os/win_defs.h
+++ b/src/nvim/os/win_defs.h
@@ -19,7 +19,7 @@
#define NAME_MAX _MAX_PATH
-#define TEMP_DIR_NAMES { "$TMP", "$TEMP", "$USERPROFILE", "" }
+#define TEMP_DIR_NAMES { "$TMPDIR", "$TMP", "$TEMP", "$USERPROFILE", "" }
#define TEMP_FILE_PATH_MAXLEN _MAX_PATH
#define FNAME_ILLEGAL "\"*?><|"