0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 7.4.1108

Problem:    Expanding "~" halfway a file name.
Solution:   Handle the file name as one name. (Marco Hinz)  Add a test.
            Closes #564.
This commit is contained in:
Bram Moolenaar
2016-01-16 21:50:51 +01:00
parent da440d21a6
commit 58adb14739
7 changed files with 44 additions and 24 deletions

View File

@@ -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);