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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user