Mercurial > vim
diff src/eval.c @ 25186:0a3b1c66d3f2 v8.2.3129
patch 8.2.3129: Vim9: imported uninitialized list does not get type checked
Commit: https://github.com/vim/vim/commit/c967d57aa9a6bede0f50c6986dcddc1dc035a354
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jul 8 21:38:50 2021 +0200
patch 8.2.3129: Vim9: imported uninitialized list does not get type checked
Problem: Vim9: imported uninitialized list does not get type checked.
Solution: Get type from imported variable.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 08 Jul 2021 21:45:04 +0200 |
parents | e495f40e4b07 |
children | dc66d0284518 |
line wrap: on
line diff
--- a/src/eval.c +++ b/src/eval.c @@ -959,7 +959,7 @@ get_lval( && lp->ll_tv == &v->di_tv && ht != NULL && ht == get_script_local_ht()) { - svar_T *sv = find_typval_in_script(lp->ll_tv, TRUE); + svar_T *sv = find_typval_in_script(lp->ll_tv); // Vim9 script local variable: get the type if (sv != NULL)