mirror of
https://github.com/vim/vim.git
synced 2025-07-25 10:54:51 -04:00
patch 7.4.1014
Problem: fnamemodify('.', ':.') returns an empty string in Cygwin. Solution: Use CCP_RELATIVE in the call to cygwin_conv_path. (Jacob Niehus, closes #505)
This commit is contained in:
parent
9b05a0d0f9
commit
06b0734d9c
@ -2464,7 +2464,10 @@ mch_FullName(fname, buf, len, force)
|
|||||||
* This helps for when "/etc/hosts" is a symlink to "c:/something/hosts".
|
* This helps for when "/etc/hosts" is a symlink to "c:/something/hosts".
|
||||||
*/
|
*/
|
||||||
# if CYGWIN_VERSION_DLL_MAJOR >= 1007
|
# if CYGWIN_VERSION_DLL_MAJOR >= 1007
|
||||||
cygwin_conv_path(CCP_WIN_A_TO_POSIX, fname, posix_fname, MAXPATHL);
|
/* Use CCP_RELATIVE to avoid that it sometimes returns a path that ends in
|
||||||
|
* a forward slash. */
|
||||||
|
cygwin_conv_path(CCP_WIN_A_TO_POSIX | CCP_RELATIVE,
|
||||||
|
fname, posix_fname, MAXPATHL);
|
||||||
# else
|
# else
|
||||||
cygwin_conv_to_posix_path(fname, posix_fname);
|
cygwin_conv_to_posix_path(fname, posix_fname);
|
||||||
# endif
|
# endif
|
||||||
|
@ -741,6 +741,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1014,
|
||||||
/**/
|
/**/
|
||||||
1013,
|
1013,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user