mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.2.4134: MS-Windows: test for import with absolute path fails
Problem: MS-Windows: test for import with absolute path fails. Solution: Handle path starting with slash as an absolute path.
This commit is contained in:
@@ -750,6 +750,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 */
|
||||||
|
/**/
|
||||||
|
4134,
|
||||||
/**/
|
/**/
|
||||||
4133,
|
4133,
|
||||||
/**/
|
/**/
|
||||||
|
@@ -468,7 +468,13 @@ handle_import(
|
|||||||
vim_free(from_name);
|
vim_free(from_name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (mch_isFullName(tv.vval.v_string))
|
else if (mch_isFullName(tv.vval.v_string)
|
||||||
|
#ifdef BACKSLASH_IN_FILENAME
|
||||||
|
// On MS-Windows omitting the drive is still handled like an
|
||||||
|
// absolute path, not using 'runtimepath'.
|
||||||
|
|| *tv.vval.v_string == '/' || *tv.vval.v_string == '\\'
|
||||||
|
#endif
|
||||||
|
)
|
||||||
{
|
{
|
||||||
// Absolute path: "/tmp/name.vim"
|
// Absolute path: "/tmp/name.vim"
|
||||||
if (is_autoload)
|
if (is_autoload)
|
||||||
|
Reference in New Issue
Block a user