From f6a44f714a383a69db05cb47e26abffd966cd6a5 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 27 Sep 2020 13:51:14 +0200 Subject: patch 8.2.1753: Vim9: crash when using import at script level Problem: Vim9: crash when using import at script level. Solution: Give a "not implemented yet" error. (closes #7026) --- src/evalvars.c | 5 +++++ src/version.c | 2 ++ 2 files changed, 7 insertions(+) (limited to 'src') diff --git a/src/evalvars.c b/src/evalvars.c index 087a0cbdb9..3571169370 100644 --- a/src/evalvars.c +++ b/src/evalvars.c @@ -2486,6 +2486,11 @@ eval_variable( rettv->vval.v_string = vim_strsave(import->imp_funcname); } } + else if (import->imp_all) + { + emsg("Sorry, 'import * as X' not implemented yet"); + ret = FAIL; + } else { scriptitem_T *si = SCRIPT_ITEM(import->imp_sid); diff --git a/src/version.c b/src/version.c index 149a3ff212..f3dbf2808a 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1753, /**/ 1752, /**/ -- cgit v1.2.3