From: Bram Moolenaar Date: Sun, 27 Sep 2020 11:51:14 +0000 (+0200) Subject: patch 8.2.1753: Vim9: crash when using import at script level X-Git-Tag: v8.2.1753 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f6a44f714a383a69db05cb47e26abffd966cd6a5;p=vim 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) --- diff --git a/src/evalvars.c b/src/evalvars.c index 087a0cbdb..357116937 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 149a3ff21..f3dbf2808 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, /**/