Mercurial > vim
diff src/vim9execute.c @ 26980:8796f1384750 v8.2.4019
patch 8.2.4019: Vim9: import mechanism is too complicated
Commit: https://github.com/vim/vim/commit/d5f400c607182db6d4fbe2964471d796277f67e8
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jan 6 21:10:28 2022 +0000
patch 8.2.4019: Vim9: import mechanism is too complicated
Problem: Vim9: import mechanism is too complicated.
Solution: Do not use the Javascript mechanism but a much simpler one.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 06 Jan 2022 22:15:04 +0100 |
parents | 902b8bee5254 |
children | 32120100fde8 |
line wrap: on
line diff
--- a/src/vim9execute.c +++ b/src/vim9execute.c @@ -1160,7 +1160,7 @@ store_var(char_u *name, typval_T *tv) if (tv->v_lock) flags |= ASSIGN_CONST; save_funccal(&entry); - set_var_const(name, NULL, tv, FALSE, flags, 0); + set_var_const(name, 0, NULL, tv, FALSE, flags, 0); restore_funccal(); } @@ -2252,7 +2252,7 @@ exec_instructions(ectx_T *ectx) if (GA_GROW_FAILS(&ectx->ec_stack, 1)) goto theend; SOURCING_LNUM = iptr->isn_lnum; - if (eval_variable(name, (int)STRLEN(name), + if (eval_variable(name, (int)STRLEN(name), 0, STACK_TV_BOT(0), NULL, EVAL_VAR_VERBOSE) == FAIL) goto on_error; ++ectx->ec_stack.ga_len;