0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.4057: Vim9: not fully implementing the autoload mechanism

Problem:    Vim9: not fully implementing the autoload mechanism.
Solution:   Allow for exporting a legacy function.  Improve test coverage.
This commit is contained in:
Bram Moolenaar
2022-01-10 21:29:57 +00:00
parent 6990b78f25
commit 160aa86a9d
4 changed files with 248 additions and 177 deletions

View File

@@ -260,11 +260,11 @@ ex_export(exarg_T *eap)
(void)find_ex_command(eap, NULL, lookup_scriptitem, NULL);
switch (eap->cmdidx)
{
case CMD_let:
case CMD_var:
case CMD_final:
case CMD_const:
case CMD_def:
case CMD_function:
// case CMD_class:
is_export = TRUE;
do_cmdline(eap->cmd, eap->getline, eap->cookie,