summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-01-16 21:18:53 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-16 21:18:53 +0000
commit47036b6bd7e5a0b38f093d9f0630f054b04fa68e (patch)
treea6420a344a12e688f03ca350e895a082b42ea8f1
parentc73499351aef8b611b13c70ef8706a7e98df67a8 (diff)
patch 8.2.4117: Vim9: wrong white space error after using imported itemv8.2.4117
Problem: Vim9: wrong white space error after using imported item. Solution: Don't skip over white space. (closes #9544)
-rw-r--r--src/eval.c1
-rw-r--r--src/testdir/test_vim9_import.vim3
-rw-r--r--src/version.c2
3 files changed, 4 insertions, 2 deletions
diff --git a/src/eval.c b/src/eval.c
index c8907defd0..a21fbba851 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -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)
{
diff --git a/src/testdir/test_vim9_import.vim b/src/testdir/test_vim9_import.vim
index 6c6911a1e4..36caf70068 100644
--- a/src/testdir/test_vim9_import.vim
+++ b/src/testdir/test_vim9_import.vim
@@ -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()
diff --git a/src/version.c b/src/version.c
index feedd8f6e9..1c367e68e9 100644
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 4117,
+/**/
4116,
/**/
4115,