comparison src/eval.c @ 27043:15f40772e10a v8.2.4050

patch 8.2.4050: Vim9: need to prefix every item in an autoload script Commit: https://github.com/vim/vim/commit/dc4451df61a6aa12a0661817b7094fb32f09e11d Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 9 21:36:37 2022 +0000 patch 8.2.4050: Vim9: need to prefix every item in an autoload script Problem: Vim9: need to prefix every item in an autoload script. Solution: First step in supporting "vim9script autoload" and "import autoload".
author Bram Moolenaar <Bram@vim.org>
date Sun, 09 Jan 2022 22:45:04 +0100
parents c9474ae175f4
children 9897dd3c6530
comparison
equal deleted inserted replaced
27042:8fc14d120630 27043:15f40772e10a
884 if (lp->ll_name == NULL) 884 if (lp->ll_name == NULL)
885 return p; 885 return p;
886 886
887 if (*p == '.' && in_vim9script()) 887 if (*p == '.' && in_vim9script())
888 { 888 {
889 imported_T *import = find_imported(lp->ll_name, p - lp->ll_name, NULL); 889 imported_T *import = find_imported(lp->ll_name, p - lp->ll_name,
890 TRUE, NULL);
891
890 if (import != NULL) 892 if (import != NULL)
891 { 893 {
892 ufunc_T *ufunc; 894 ufunc_T *ufunc;
893 type_T *type; 895 type_T *type;
894 896