mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
updated for version 7.3.559
Problem: home_replace() does not work with 8.3 filename. Solution: Make ":p" expand 8.3 name to full path. (Yasuhiro Matsumoto)
This commit is contained in:
21
src/eval.c
21
src/eval.c
@@ -23554,6 +23554,27 @@ repeat:
|
||||
return -1;
|
||||
}
|
||||
|
||||
#ifdef WIN3264
|
||||
# if _WIN32_WINNT >= 0x0500
|
||||
if (vim_strchr(*fnamep, '~') != NULL)
|
||||
{
|
||||
/* Expand 8.3 filename to full path. Needed to make sure the same
|
||||
* file does not have two different names.
|
||||
* Note: problem does not occur if _WIN32_WINNT < 0x0500. */
|
||||
p = alloc(_MAX_PATH + 1);
|
||||
if (p != NULL)
|
||||
{
|
||||
if (GetLongPathName(*fnamep, p, MAXPATHL))
|
||||
{
|
||||
vim_free(*bufp);
|
||||
*bufp = *fnamep = p;
|
||||
}
|
||||
else
|
||||
vim_free(p);
|
||||
}
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
/* Append a path separator to a directory. */
|
||||
if (mch_isdir(*fnamep))
|
||||
{
|
||||
|
Reference in New Issue
Block a user