forked from aniani/vim
patch 8.2.4069: Vim9: import test fails on MS-Windows
Problem: Vim9: import test fails on MS-Windows. Solution: Ignore case. Adjust test to avoid name that only differs in case.
This commit is contained in:
@@ -906,7 +906,7 @@ get_lval(
|
||||
NULL, TRUE) == -1)
|
||||
{
|
||||
*p = cc;
|
||||
return FAIL;
|
||||
return NULL;
|
||||
}
|
||||
*p = cc;
|
||||
}
|
||||
@@ -5903,7 +5903,7 @@ handle_subscript(
|
||||
type_T *type;
|
||||
|
||||
// Found script from "import {name} as name", script item name must
|
||||
// follow.
|
||||
// follow. "rettv->vval.v_number" has the script ID.
|
||||
if (**arg != '.')
|
||||
{
|
||||
if (verbose)
|
||||
|
@@ -2156,7 +2156,7 @@ get_autoload_prefix(scriptitem_T *si)
|
||||
|
||||
if (p == NULL)
|
||||
return NULL;
|
||||
prefix = vim_strsave(p);
|
||||
prefix = strlow_save(p);
|
||||
if (prefix == NULL)
|
||||
return NULL;
|
||||
|
||||
|
@@ -1203,12 +1203,12 @@ def Test_vim9script_autoload_call()
|
||||
g:result = 'other'
|
||||
enddef
|
||||
END
|
||||
writefile(lines, 'Xdir/autoload/other.vim')
|
||||
writefile(lines, 'Xdir/autoload/another.vim')
|
||||
|
||||
lines =<< trim END
|
||||
vim9script
|
||||
import autoload 'other.vim'
|
||||
call other.Getother()
|
||||
import autoload 'another.vim'
|
||||
call another.Getother()
|
||||
assert_equal('other', g:result)
|
||||
END
|
||||
CheckScriptSuccess(lines)
|
||||
|
@@ -750,6 +750,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
4069,
|
||||
/**/
|
||||
4068,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user