aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-03-04 13:12:59 -0500
committerJustin M. Keyes <justinkz@gmail.com>2016-03-04 13:12:59 -0500
commit8991b4b095c9b4817eb88e003201292e11e05fae (patch)
tree38e935d9d6e4023d72cc79d1bb6160ae8a413800
parentc2c180fbb3dfb0ec00183ec56f3646e08a72586c (diff)
parent55c0621ff3e9e585ad0340f5d1f475dc23f38daa (diff)
downloadrneovim-8991b4b095c9b4817eb88e003201292e11e05fae.tar.gz
rneovim-8991b4b095c9b4817eb88e003201292e11e05fae.tar.bz2
rneovim-8991b4b095c9b4817eb88e003201292e11e05fae.zip
Merge pull request #4320 from watiko/vim-7.4.958
vim-patch:7.4.958
-rw-r--r--src/nvim/tempfile.c3
-rw-r--r--src/nvim/version.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/tempfile.c b/src/nvim/tempfile.c
index a218c03fdb..afe926b2ef 100644
--- a/src/nvim/tempfile.c
+++ b/src/nvim/tempfile.c
@@ -32,8 +32,9 @@ static void vim_maketempdir(void)
char_u path[TEMP_FILE_PATH_MAXLEN];
for (size_t i = 0; i < ARRAY_SIZE(temp_dirs); ++i) {
// Expand environment variables, leave room for "/nvimXXXXXX/999999999"
+ // Skip the directory check if the expansion fails.
expand_env((char_u *)temp_dirs[i], template, TEMP_FILE_PATH_MAXLEN - 22);
- if (!os_isdir(template)) { // directory doesn't exist
+ if (template[0] == '$' || !os_isdir(template)) {
continue;
}
diff --git a/src/nvim/version.c b/src/nvim/version.c
index 0b4db941e8..4e875516c0 100644
--- a/src/nvim/version.c
+++ b/src/nvim/version.c
@@ -332,7 +332,7 @@ static int included_patches[] = {
961,
// 960 NA
// 959 NA
- // 958,
+ 958,
// 957,
// 956 NA
955,