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.
diff --git a/src/misc2.c b/src/misc2.c
index 0ee57fc..4e9e473 100644
--- a/src/misc2.c
+++ b/src/misc2.c
@@ -5543,7 +5543,7 @@
/* 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);