1
0
forked from aniani/vim

patch 8.2.4117: Vim9: wrong white space error after using imported item

Problem:    Vim9: wrong white space error after using imported item.
Solution:   Don't skip over white space. (closes #9544)
This commit is contained in:
Bram Moolenaar
2022-01-16 21:18:53 +00:00
parent c73499351a
commit 47036b6bd7
3 changed files with 4 additions and 2 deletions

View File

@@ -6001,7 +6001,6 @@ handle_subscript(
idx = find_exported(rettv->vval.v_number, exp_name, &ufunc, &type,
evalarg->eval_cctx, verbose);
**arg = cc;
*arg = skipwhite(*arg);
if (idx < 0 && ufunc == NULL)
{

View File

@@ -69,6 +69,7 @@ def Test_vim9_import_export()
g:imported_name = expo.exp_name
expo.exp_name ..= ' Doe'
expo.exp_name = expo.exp_name .. ' Maar'
g:imported_name_appended = expo.exp_name
g:exported_later = expo.exported
@@ -97,7 +98,7 @@ def Test_vim9_import_export()
assert_equal('Exported', g:imported_func)
assert_equal('Exported', g:funcref_result)
assert_equal('John', g:imported_name)
assert_equal('John Doe', g:imported_name_appended)
assert_equal('John Doe Maar', g:imported_name_appended)
assert_false(exists('g:name'))
Undo_export_script_lines()

View File

@@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
4117,
/**/
4116,
/**/