Mercurial > vim
diff src/misc2.c @ 7617:80bc36419c21 v7.4.1108
commit https://github.com/vim/vim/commit/58adb14739fa240ca6020cede9ab1f1cb07bd90a
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 16 21:50:51 2016 +0100
patch 7.4.1108
Problem: Expanding "~" halfway a file name.
Solution: Handle the file name as one name. (Marco Hinz) Add a test.
Closes https://github.com/vim/vim/issues/564.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 16 Jan 2016 22:00:05 +0100 |
parents | 87e607fb6853 |
children | 1fded31d9e04 |
line wrap: on
line diff
--- a/src/misc2.c +++ b/src/misc2.c @@ -5543,7 +5543,7 @@ find_file_in_path_option(ptr, len, optio /* 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);