summaryrefslogtreecommitdiff
path: root/src/misc2.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-01-16 21:50:51 +0100
committerBram Moolenaar <Bram@vim.org>2016-01-16 21:50:51 +0100
commit58adb14739fa240ca6020cede9ab1f1cb07bd90a (patch)
tree659dac4baa05f277c760ffe5f73f128c4ee20536 /src/misc2.c
parentda440d21a6b94d7f525fa7be9b1417c78dd9aa4c (diff)
downloadvim-git-58adb14739fa240ca6020cede9ab1f1cb07bd90a.tar.gz
patch 7.4.1108v7.4.1108
Problem: Expanding "~" halfway a file name. Solution: Handle the file name as one name. (Marco Hinz) Add a test. Closes #564.
Diffstat (limited to 'src/misc2.c')
-rw-r--r--src/misc2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc2.c b/src/misc2.c
index 0ee57fc4a..4e9e47357 100644
--- a/src/misc2.c
+++ b/src/misc2.c
@@ -5543,7 +5543,7 @@ find_file_in_path_option(ptr, len, options, first, path_option,
/* copy file name into NameBuff, expanding environment variables */
save_char = ptr[len];
ptr[len] = NUL;
- expand_env(ptr, NameBuff, MAXPATHL);
+ expand_env_esc(ptr, NameBuff, MAXPATHL, FALSE, TRUE, NULL);
ptr[len] = save_char;
vim_free(ff_file_to_find);